The correct option is D Mechanical → Electrical
In an electric generator, mechanical energy present in its rotating parts like turbines is converted into electricity.
An electrical motor converts electrical energy into mechanical energy.
Chemical to electrical energy conversion takes place in an electric cell or a battery.
Vehicle engines are an example of chemical to mechanical energy conversion where the chemical energy of the fuel is converted into the mechanical energy of the engine parts.