An electric current runs through the circuit below. As the current flows, the temperature of the resistor increases. Which of the following statements is true?
A.
Light energy is being converted into electrical energy in the battery.
B.
Heat energy is being converted into electrical energy in the resistor.
C.
Electrical energy is being converted into chemical energy in the resistor.
D.
Electrical energy is being converted into heat energy in the resistor.