Ответ:

4. Nobody was listening while the teacher was explaining the tenses.

Ответ: was listening; was explaining