Answer: Option (B) is the correct answer.
Step-by-step explanation:
When we heat food in a microwave then the electrical energy of microwave produces microwaves which are also part of electromagnetic spectrum.
These microwaves are absorbed by food and as a result microwaves change into heat energy. Therefore, food becomes hot.
Thus, we can conclude that to cook food, a microwave oven converts electrical energy into heat energy.