Question: how a line spectrum is produced?
Answer: As electrons jump down to the n = 2 orbit, they emit photons of specific frequency (hence colour) that can be seen as emission lines in the visible part of the em spectrum. ... The number of spectral lines that can be produced is vast given the permutations of atoms, molecules and orbital transitions possible.