Which of the following is an example of a transformation of chemical energy into electrical energy?

•An oil lighting up a room
•A car battery making headlights shine
•Sunlight providing power to a solar calculator
•A blowtorch welding two pieces of metal together. ​