$\begin{array}{1 1} (a)\; \text{heat energy is converted to electric energy} \\ (b)\; \text{electric energy is converted to heat energy} \\ (c)\; \text{mechanical energy is converted to heat energy} \\ (d)\; \text{electric energy is converted to mechanical energy} \end{array}$