Answer:
3) Ionic
Step-by-step explanation:
The solid formed when a bond occurs between magnesium and oxygen is an ionic bond. This bond type occurs between a metal and non-metal. 
- Magnesium is the metal
 - Oxygen is the non - metal
 - Due to the large electronegativity difference between the two species, the metal loses electrons which the non-metal oxygen gains 
 - They both complete their octet and electrostatic attraction leads to the formation of ionic bonds.