Was it when he was taking the driving test he ran into a pig in the street?

Was it when he was taking the driving test he ran into a pig in the street?

A.where

B.when

C.that

D.how

答案及解析: C