The correct answer is D. Light energy to electrical energy.
A photoelectric cell is a device that converts light energy into electrical energy. It does this by using a semiconductor material, such as silicon, to absorb light. When light is absorbed by the semiconductor, it creates an electric current. This current can be used to power devices or to store energy in a battery.
Option A is incorrect because a photoelectric cell does not convert mechanical energy to electric energy.
Option B is incorrect because a photoelectric cell does not convert heat energy to mechanical energy.
Option C is incorrect because a photoelectric cell does not convert light energy to chemical energy.