It's important to know that when a system releases heat to the surroundings, the net value of heat is negative by convention, it's exothermic.
On the other hand, when a system does work then the work done is negative, that is, the system is exerting work.
Therefore, the correct answer is D.