Worked solution from the Atoms, elements and compounds MCQ booklet.
Magnesium is in Group II, so its atoms have 2 outer electrons. Oxygen is in Group VI, so its atoms have 6 outer electrons.
Magnesium loses its 2 outer electrons to form Mg2+. Oxygen gains 2 electrons to make a full outer shell, forming O2−.
So the answer is D.
A is wrong because the bonding is ionic, so electrons are transferred, not shared. B has the electron movement the wrong way round. C says only one electron moves, but both need 2.
▶ Whole paper
Video solution of the whole paper · by Ajiro Tech (A.T). 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.