单项选择题

The students ______ the exercises, the teacher went on to explain the text.

A.doing
B.did
C.having done
D.to do