To answer this question it is necessary to use the Bohr Model as a theoretical reference. According to this model, the energy levels of an atom are divided by discrete and characteristic energies. When there is the emission or absorption of a photon with a characteristic energy there is a transition of another energy level, which is equal to the level of atomic energy. Since the energy of a photo is directly proportional to its frequency, the emitted or absorbed photons have characteristic frequencies to the difference in energy between atomic energy levels.