The correct option is D Both A and B are correct.
When the elements or their compounds are heated either on a flame or by an electric arc they emit energy in the form of light. Analysis of this light, with the help of a spectroscope gives us a discontinuous spectrum. The spectrum appears in a series of lines called the line spectrum. This line spectrum is also called the Atomic Spectrum because it originates in the element.
The energy of a molecule can also change via rotational, vibrational, and vibronic (combined vibrational and electronic) transitions. These energy transitions often lead to closely spaced groups of many different spectral lines, known as spectral bands or Band spectrum.