Respuesta :

The answer is both. The energy in the system is composed of heat and work. because of the temperature difference, the energy would be in the form of heat. Because of the force in executing the compression in the same direction, there is also work done. 

Explanation:

When the gas is compressed under piston cylinder device it means that it is a closed system.And we know that in closed system only heat and work transfer can take place only ,there will be no any mass transfer between the system and surrounding.

During compression temperature of gas increases so the this may be cause on work done on the gas or maybe cause of heat supply to the gas.

ACCESS MORE