A gas presses on its container because its molecules hit the walls and bounce back. In the kinetic theory, the absolute temperature of an ideal gas is proportional to the average translational kinetic energy of its molecules. The internal energy of an ideal gas depends on its temperature only.
The first law of thermodynamics is the conservation of energy for heat and work: the heat supplied to a gas goes into raising its internal energy and into work done by the gas.
Four special processes are tested: isothermal (constant temperature), adiabatic (no heat enters or leaves), isobaric (constant pressure) and isochoric (constant volume). For each one, decide which term of the first law is zero.