A battery converts chemical energy into electrical energy.
An electric generator converts :
(a) electrical energy into mechanical energy
(b) mechanical energy into hear eneregy
(c) electrical energy into chemical energy
(d) mechanical energy into electrical energy