Answer:
Option D
The system gains heat and has work done on it by the surroundings.
Step-by-step explanation:
Considering that any system that processes anything leads to an increment in the energy within the system. This implies that the system has to absorb more heat either from the surrounding or external sources and the work done on the surrounding, Therefore, option D is correct by saying that the system gains heat and has work done on it by the surroundings.