Answer:
When the gas is compressed, its molecules come closer and internal energy of gas is increased and the number of collisions will also increase. As the gas is compressed, the work done on it shows up as increased internal energy, which must be transferred to the surroundings to keep the temperature constant.