Light transfers energy only if the "warming effect" of the light can be detected. Thus, sunlight might transfer energy but a florescent light does not.
Items that test for misconception RGM059 in this project (ASPECt)
and key idea (When light shines on an object, the…)