I was doing my homework in my bedroom________ the light went out.I did it with a candle on.
A.which B.while C.when D.where
C