You have a definition or terminology issue, not a physics issue:
https://en.wikipedia.org/wiki/X-ray#Gamma_rays
Excerpt:
There is no consensus for a definition distinguishing between X-rays
and gamma rays. One common practice is to distinguish between the two
types of radiation based on their source: X-rays are emitted by
electrons, while gamma rays are emitted by the atomic
nucleus.[56][57][58][59] This definition has several problems: other
processes also can generate these high-energy photons, or sometimes
the method of generation is not known. One common alternative is to
distinguish X- and gamma radiation on the basis of wavelength (or,
equivalently, frequency or photon energy), with radiation shorter than
some arbitrary wavelength, such as 10−11 m (0.1 Å), defined as gamma
radiation.[60] This criterion assigns a photon to an unambiguous
category, but is only possible if wavelength is known. (Some
measurement techniques do not distinguish between detected
wavelengths.)
For the purposes of passing your tests, I suppose it is best to use the definitions implicit in your textbooks or notes, but you should be aware of the ambiguity.