The correct option is B −W=q=nRT[1−P2P1]
The internal energy of an ideal gas is directly proportional to the temperature of the gas.
ΔE=nCvΔT=q+W
In an isothermal process, there is no change in temperature so ΔT will be equal to zero. Hence, change in internal energy, ΔU=0,q=−W=P2ΔV=nRT[1−P2P1]