Everybody in the class is prepared for the exam.
The above statement is correct as when we say everybody or everyone, we are considering the class as a unit. So singular form of the verb “is” is correct.
Babu invited Danish to his house because he enjoys playing chess.
The above statement is ambiguous because we are not sure who “he” refers to – it can be either Babu or Danish.
Option C follows from the above.