The correct answer is' a generator'.
Explanation:
A generator is a device which converts mechanical work into electricity.According top Faraday's law of electromagnetic induction whenever a conductor is placed in varying magnetic field an electromotive force (emf )is induced in a conductor.
And if the conductor circuit is closed the induced emf will cause a flow of current in a circuit. Hence generating electricity.