The teacher was so happy when the entire class passed the test.
Of the below sentences, which one does *not* make sense?

1. "the whole class passed the exam and the teacher is happy"
2. "the whole class passed the exam and the teacher is angry"