If the teacher had any intelligence they would tell everyone to put their homework aside and pass out an equivalent test.
Those who took the time to learn and solve the homework would have little problem completing the "pop test."
It is lucky I'm not a teacher. ;)