in which of these examples does chemical energy change to electrical energy?

A-digesting food
B-photosynthesis
C- respiration
D- Using battery