Let’s put it this way:
Suppose the school rules, set down ex cathedra by the infallible Pope himself and manifestly true to all and sundry, state that there will be one quiz, given on either Monday or Tuesday.
It’s Sunday afternoon. The judge comes up to you and whispers “Tonight, you won’t be certain that the quiz will be on Monday.”
The judge pauses, goes away, has lunch, and then comes back and whispers “Oh, yeah, and another thing. The quiz will be on Monday.”
Now, what do you become certain of, and who manages to avoid saying/being certain of false things (assuming the quiz actually is given on Monday)?
Well
A) You could take the judge at his word on both assertions. In this case, both you and the judge will believe something wrong. The judge will be wrong when he says “Tonight, you won’t be certain that the quiz will be on Monday”. You will also be wrong when you accept that assertion from the judge. So, you won’t be surprised by the quiz, but you will have been wrong about something else.
B) You could refrain from taking the judge at his word on either assertion. In this case, the judge will be correct in both his assertions (that the quiz will be on Monday, and that you will not be certain that the quiz will be on Monday). You also will manage to avoid being certain of false things. So, you won’t be wrong about anything, but you will be surprised by the quiz.
C) You could take the judge at his word on his first assertion but refrain from doing so on his second assertion. In this case, the judge will be correct in both his assertions (that the quiz will be on Monday, and that you will not be certain that the quiz will be on Monday). You also will manage to avoid being certain of false things. So, you won’t be wrong about anything, but you will be surprised by the quiz. [As you see, there isn’t much relevant difference between this case and case B)]
D) You could take the judge at his word on his second assertion but refrain from doing so on his first assertion. In this case, the judge will be wrong when he says “Tonight, you won’t be certain that the quiz will be on Monday”. You, on the other hand, will be correct about everything, and moreover, you will not be surprised by the quiz. Go you!
So, if you want to avoid believing false things, you need to land in cases B), C), or D). The problem with cases C) and D) is that you treat the two judge’s assertions differently: on what principled basis would you accept one as the certain truth but not the other? [Particularly if the judge actually told you both in the form of a single conjunction, instead of, as illustrated here, two separate assertions].
So if you want to believe only true things, and cannot come up with a compelling epistemological principle for why you should accept some assertions from the judge but refrain from accepting other ones, then you must land in case B). In which case, both you and the judge avoid claiming/believing anything false, but you also avoid forming a belief as to the date of the quiz, and so are surprised when it’s given on Monday, despite the judge having told you it would be.