问题

Only when he failed in the final exam ____up his mind to study harder to catch up with the classmates ahead of him.

A:he made
B:he had made
C:had he made
D:did he make
正确答案是: