A generator converts mechanical energy into electric energy. This process typically involves a mechanical input that causes a rotor to move within a magnetic field. The correct answer to the question is option OD. ;
A generator converts mechanical energy into electrical energy as it spins a rotor within a magnetic field, inducing an electric current according to Faraday's law. The correct choice is option D. Other options pertain to the functions of motors or transformers, which are not applicable here.
;