For the given process pressure is constant therefore, it is an isobaric process.
For a quasi-static process the change in internal energy of an ideal gas is independent of the nature of the process and is given by,
ΔU=nCvΔT
=n×23R×ΔT
[molar heat capacity at constant volume for monatomic gas =23R]
ΔU=7×23×8.3×40=3486J