The correct option is C Both A and B are true.
The light emitted by one kind of atoms generally have widely separated wavelength components. When such a light is dispersed, we get certain sharp bright lines on a dark background. Such a spectrum is called line emission spectrum.The wavelength emitted by the molecules are grouped, each group being well separated from the other. The wavelengths in a group are close to one another and appear as continuous.The spectrum looks like separate bands of varying colors. Such a spectrum is called a band emission spectrum.So, line spectra are due to atoms in a gaseous state and band spectra are due to molecules.