When I came in,the students were singing.对.
when引导的时间状语从句一般用一般过去时或者一般现在时,while 从句一般用进行时.比如:
(1) He was still smiling when the door opened and his wife came in.
他正笑着的时候,门突然开了,他妻子走了进来.
(2) I was thinking of this when I heard my name called.
我正想着这件事时,突然听到有人叫我的名字.