问题

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