部屋(へや)に 入(はい)ったら 電気(でんき) が ついてい ました。
The correct answer is 「が」. The verb 'ついている' comes from 'つく', which is an intransitive verb (自動詞) meaning 'to be turned on'. Intransitive verbs take the subject particle 'が'. If it were the transitive verb 'つける' (to turn on), it would take 'を', but since it's describing the state of the light being on, '電気がついている' is correct.
正解は「が」です。「つく」は電気が点灯する状態を表す自動詞です。自動詞の主語は「が」で示されます。他動詞の「つける(電気をつける)」であれば「を」を使いますが、ここでは「ついている」という状態描写のため「が」になります。
Project Eagleなら、AIがあなたの弱点を一瞬で検知。豊富なクイズ・模擬試験・音声読み上げトレーニングで日本語を完全攻略!