You are correct!!

Sentence:  When a student doesn't study they tend to do poor on a test.

The correct way to write this sentence would be to replace the plural pronoun they with the singular pronoun he or she.

 

2)  In class today everybody threw their pencils at Billy.

   
a)  This sentence is correct.
   
b)  This sentence is incorrect.