1 g of an ideal gas expands isothermally; heat flow will be:
from the gas to outside atmosphere
from outside atmosphere to the gas
zero
both (a) and (b)
In isothermal process heat will be supplied to the system.