Since the ideal gas expands spontaneously into vacuum, Pext = 0, hence work done is also zero.
Take chapter-wise tests, track your progress, and master Thermodynamics and Thermochemistry.