24. Which of the following is true for a generator?
A. It transforms thermal energy to electrical energy.
B. It transforms mechanical energy into electrical energy.
C. It transforms electrical energy into mechanical energy.
D. It transforms solar energy into electrical energy.