问题

He failed the mid-term examination and only then _______ how much time he had wasted.
A:had he realized
B:did he realize
C:he had realized
D:he realized
B:did he realize
C:he had realized
D:he realized
正确答案是: