X-rays are produced when:
B i.e. Electron beam strikes the anode
Electron beam strike the nucleus of the atom
Electron beam strikes the anode
Electron beam reacts with the electromagnetic field.
Electron beam strikes the cathode