In which of the following devices, electrical energy converted into mechanical energy?
a). Battery
b). Electric generator
c). Rectifier
d). Electric motor
e). None of the above