What role does a resistor play in an electrical circuit? A. it removes excess electrons from the outer surface of a conducting wire. B. it transforms light energy and thermal energy into electrical energy. C. it transforms the electrical energy of the electrons into other forms of energy. D. it stores electrical energy until it can be released by closing a switch