Answer: As a container of confined gas is heated, its molecules increase in kinetic energy and push the movable piston outward, resulting in an increase in volume. These examples of the effect of temperature on the volume of a given amount of a confined gas at constant pressure are true in general: The volume increases as the temperature increases, and decreases as the temperature decreases.