(A) $X$-rays are produced when high-energy electrons are bombarded on a metal target. Their wavelength ranges from $10^{-8} \text{ m}$ to $10^{-13} \text{ m}$.
Uses of $X$-rays:
$(i)$ Used in medical science to detect bone fractures and treat certain types of cancer.
$(ii)$ Used in industrial applications to detect cracks and flaws in metal components.
Gamma rays are emitted during nuclear processes and from certain radioactive nuclei. They have the highest frequency in the electromagnetic spectrum,with a wavelength range of $10^{-10} \text{ m}$ to $10^{-14} \text{ m}$.
Uses of gamma rays:
$(i)$ Used in medical science to destroy cancer cells (radiotherapy).
$(ii)$ Used in the food industry for sterilization and to kill bacteria.