单项选择题

The boy knew everything ______.

A.the moment he was asked to stay behind
B.when the teacher started talking about honesty
C.only some time later
D.when he was walking out of the room