When would a transformation of chemical energy to electrical energy occur?

A) when a reaction produces the same products

B) when electrons stop moving between atoms

C) when the current becomes zero

D) when there is chemical reaction between metals and nonmetals

D) when there is chemical reaction between metals and nonmetals

A transformation of chemical energy to electrical energy would occur when there is a chemical reaction between metals and nonmetals. (Option D)