Which of the following best describes why the optical spectrum of an atom exists as discrete lines and not as a continuous spectrum:

W) atoms have electrons with unit charge

X) all atoms when excited emit light

Y) all energy levels of atoms are quantized

Z) all electrons have spin
Y) ALL ENERGY LEVELS OF ATOMS ARE QUANTIZED