For the most favourable collision in which the electron loses, the whole of its energy in a single collision with the target atom, an X-ray photon of maximum energy hv is emitted E=hv
where h is Planck's constant and v is frequency.
Given, E=2keV =2×103×1.6×10−19J ⇒v=hE=6.6×10−342×103×1.6×10−19 =9.84×1017 ≈5×1017/s
Note : Since, energy ∝ frequency, higher the energy higher the frequency.