Question: when is work done on a gas?
Answer: Positive work is done on the gas when the gas is compressed; negative work is done on the gas when the gas expands. zero work is done on the gas when the gas volume is fixed.