Two moles of a monoatomic gas at 300 K are kept in a non-conducting container enclosed by a piston. The gas is now compressed to increase the temperature from 300 K to 400 K. The work done by the gas is

A) 0 J
B) 1000 J
C) 1200 J
D) 1600 J