A transformation of chemical energy to electrical energy occurs when there is a chemical reaction between metals and nonmetals.
The movement of electrons from one atom to another is what results in electrical energy.
A battery is a device that converts chemical energy contained within its active materials directly into electric energy by means of an electrochemical oxidation-reduction (redox) reaction. This type of reaction involves the transfer of electrons from one material to another via an electric circuit.
Hence, option C is correct.
Learn more about electrical energy here:
https://brainly.com/question/1580875
#SPJ1