问题

Only when the final examination was coming ________ he had quite a lot to do.[ ]
A: he realized
B: he had realized
C: did he realize
D: had he realized
B: he had realized
C: did he realize
D: had he realized
正确答案是: