(A) It is an isobaric process.
Volume decreases, therefore temperature decreases.If temperature decreases, internal energy decreases.
From the first law of thermodynamics,
Q=U+W
Since work done is negative, Heat is lost . It is the work done on the gas.
(B) It is an isochoric process.
Pressure decreases, therefore temperature decreases and hence internal energy decreases.Work done is always zero. Heat is lost by the system.
(C) It is an isobaric process.Volume increases, therefore temperature increases and hence internal energy will increase. Heat is gained by the system since it is positive in sign. Work is done by the gas.
(D) TD= P(9V)nR= 9PVnR
TA= (3P)(3V)nR= 9PVnR. So it is an isothermal process.
W=nRTlnVAVD
Work done will be negative and hence heat is lost. It is the work done on the gas.