Two moles of a diatomic gas at 300 K are kept in a nonconducting container enclosed by a piston. Gas is now compressed to increase the temperature from 300 K to 400 K.