The correct option is A True
In a sample of hydrogen gas, the number of hydrogen molecules is present. These molecules dissociate and produce hydrogen atoms when heated. Each hydrogen atom contains one electron. The hydrogen atoms absorb different amounts of energy and go to different excited states. From there, they take different paths and come back to ground state. Since different paths are associated with different energies, different spectral lines are formed in the spectrum.