单项选择题

Only after entering the classroom, ______ that he made a mistake.

A.did he realize
B.he realized
C.he realizes
D.does he realize