Worked solution from the Atoms, elements and compounds MCQ booklet.
Simple molecular substances can be elements (such as O2) or compounds (such as H2O).
Giant covalent substances can also be elements (such as diamond or graphite) or compounds (such as silicon dioxide).
So both X and Y could be an element or a compound.
So the answer is D.
A, B and C all rule out one of these possibilities, which is wrong.
▶ Whole paper
Video solution of the whole paper · by Sir Rehan. 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.