If the internal energy of an ideal gas remains constant and the gas expands,
heat must flow from the gas to the surrounding medium.
heat must flow from the surrounding medium to the gas.
no heat must flow.