Solution:
Solar thermal energy is that which uses the Sun's energy to generate heat (heat is a form of energy). This heat is used to cook food or for the production of hot water for domestic water consumption, whether it is domestic hot water, heating (heating homes) or for the production of mechanical energy and, from it, electrical energy ( electricity for households).
So that, we can conclude that the correct answer is:
D. provide both heat and power to homes