The correct option is
D An x-ray carrying about 17 keV of energy will be radiated in the transition.
The energy levels correspond to the energies of the atom when an electron is missing from the particular shells.
An electron in the K shell will be more tightly bound to the nucleus than one in the L shell, say. We will have to provide more energy to kick out a K-electron than an K-electron. In other words, the atom gains more energy when a K shell electron gets ejected compared to a higher shell electron.
When there is a vacancy in the K shell, the atom is at the K (n=1) energy level (higher). If an electron from the L (n=2) orbit jumps to K to fill the vacancy, the atom's energy falls to a level corresponding to a vacancy in the L shell. Remember that although the electron physically jumps from an outer shell to an inner shell, the atom's energy level falls, and the arrow in the diagram represents that drop in energy (which is opposite to the electron's transition, if we consider initial and final quantum numbers, but in the direction of the vacancy's transition).
In this process, the difference in energy is compensated by radiation of x-ray photons of energy equal to
∼ (20 keV- 3 keV) =
∼ 17 keV.