Solar energy can be used to produce
electrical energy
mechanical energy
heat energy
all of the above
Hence, option (D) is the correct answer.