Concept:X-rays and gamma rays are both electromagnetic waves. Their energy ranges overlap, so the real difference is where they come from.Solution:X-rays are produced outside the nucleus, when fast electrons strike a metal target and are suddenly stopped (or when inner-shell electrons change levels).Gamma rays come from the nucleus, emitted by an excited nucleus during radioactive decay.Both travel at the speed of light, both ionize and both are absorbed in a similar way, so options A to C do not separate them.Answer:Option D (mode of production)