Option (A) is correct.
Concept used — a wave is described by its wavelength. An electromagnetic wave in vacuum is fully described by its wavelength (or frequency), its direction and its polarisation:
ν=λc,E=hν=λhc
Step 1 — Is the Assertion true? Yes. An X-ray photon and a gamma-ray photon of the same wavelength have the same frequency, the same photon energy and the same speed c. No measurement on the radiation itself can tell them apart.
Step 2 — Is the Reason true? Yes. In NCERT Table 8.1, X-rays are produced by electrons (in X-ray tubes or by inner-shell electrons), while gamma rays come from radioactive decay of the nucleus. The two ranges overlap, since there is "no sharp division between one kind of wave and the next" (NCERT 8.4).

Step 3 — Does R explain A? Yes. Since the names only record where the radiation came from, two photons with the same wavelength are the same kind of wave, whatever their label. That is exactly the claim in A.
Answer: both A and R are true, and R is the correct explanation of A — option (A).