Maybe you could refuse to take the quiz, claiming it couldn't have been a surprise.
Clearly, a quiz on Friday would not be a surprise. But then, a quiz on Thursday wouldn't be a surprise either, and so on.
Since a surprise quiz was not possible under these conditions, you assumed there would be no quiz at all.
See: https://en.wikipedia.org/wiki/Unexpected_hanging_paradox