An isolated system is that system in which
there is an exchange of mass with the surroundings.
there is an exchange of energy with the surroundings.
there is an exchange of mass and energy with the surroundings.
there is no exchange of mass and energy with the surroundings.
Hence, option D is correct.