X-rays are produced when cathode rays (high-speed electrons) strike a metal target in an X-ray tube. The sudden deceleration of electrons generates X-ray photons through the bremsstrahlung process. Alpha, beta, and gamma rays are nuclear emissions, not used to produce X-rays.