If photo electric effect does not occur by ultraviolet rays then it simply means that wavelength of ultraviolet rays is more than the threshold wavelength for the metal. In given examples only the X-rays have lower wavelength than that of ultraviolet so it may produce the effect. So the correct answer is X-rays.