Correct option is B
The internal energy of a perfect gas depends on temperature only. In an ideal gas, internal energy is a function of temperature and is independent of pressure and volume. The kinetic energy of the gas molecules, which increases with temperature, primarily contributes to the internal energy.
U = f (T), For ideal gas