What causes lines in a line spectrum?

A. Transitions that don't happen to an electron

B. Wavelengths of absorbed or emitted photons

C. Quantum numbers associated with an electron

D. Edges on the prism used to separate wavelengths