Explain, why a gas can only expand at constant temperature, if a certain quantity of heat is supplied to it

When a gas expands, its temperature tends to fall. The heat supplied to the gas must be just enough to keep its temperature constant.