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

3 answers

In a battery.
It would occur when there are two different metals involved. I forget the exact wording but that is the answer I put it and got it right.
When there is chemical reaction between metals and nonmetals