A device that converts energy of combustion of fuels like hydrogen and methane, directly into electrical energy is known as:
Dynamo
Ni-Cd cell
Fuel Cell
Electrolytic Cell
Fuel cells convert the chemical energy of fuel like H2, CH4 into electrical energy.
Option 3 is correct.