Worked solution from the Group 17 MCQ booklet.
We take the tests one at a time.
X sublimes when heated and dissolves in water to give a colourless solution.
Y warmed with NaOH gives a gas. This is NH3, so X contains NH4+.
AgNO3 gives a white precipitate, which is AgCl. It dissolves in dilute ammonia, which fits chloride. AgBr would be cream and would not dissolve fully in dilute ammonia.
So X is ammonium chloride, NH4Cl, which sublimes on heating.
So the answer is D.
A and B contain Al3+, which would give a white precipitate with NaOH but no gas. C is wrong because AgBr is cream and does not dissolve in dilute ammonia.
▶ Starts at Q22 (1:00:38)
Starts at Q22 (1:00:38) · by Lucid Mind. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.