Answer: The correct answer is Option D.
Step-by-step explanation:
Magnesium is the 12th element of the periodic table and the valence electronic configuration for this element is:
![[Ne]3s^2](https://img.qammunity.org/2019/formulas/physics/middle-school/qk7up1kqot87b5ksok7xg9dsmvuajlq479.png)
This element will loose 2 electrons to attain stable electronic configuration.
By loosing 2 electrons, this element will attain a charge of +2 units.
The electronic configuration after loosing 2 electrons and forming
ion is

Hence, the correct answer is Option D.