The correct answer is C. To convert mechanical energy into electrical energy.
A dynamo is a machine that converts mechanical energy into electrical energy. It does this by using a rotating magnetic field to induce an electric current in a coil of wire. The amount of current produced depends on the strength of the magnetic field, the speed of rotation, and the number of turns in the coil.
Dynamos are used in a variety of applications, including power generation, lighting, and transportation. They are also used in some types of motors.
Option A is incorrect because a dynamo does not convert heat energy into light energy. This is the function of a heat lamp or a light bulb.
Option B is incorrect because a dynamo does not convert light energy into heat energy. This is the function of a solar panel or a photoelectric cell.
Option D is incorrect because a dynamo does not convert electrical energy into mechanical energy. This is the function of a motor.