The correct option is B) Electromagnetic induction.
A generator or a dynamo is a device which converts mechanical energy to electrical energy. The generator was originally designed by Nikola Tesla. Principle: Generator works on the principle of electromagnetic induction. Whenever the magnetic field linked with a coil changes, an induced e.m.f is setup in coil.