问题

31A wonderful idea suddenly occurred to me _______ I would turn to the reference book to finish my homework
A:that
B:if
C:when
D:Which
B:if
C:when
D:Which
正确答案是: