Final answer:
MgO is an ionic compound formed by the combination of a metal and a nonmetal.
Step-by-step explanation:
MgO is an ionic compound.
MgO is formed by the combination of a metal (Mg) and a nonmetal (O). This combination results in the formation of an ionic bond, where the metal atom loses electrons to become a positively charged ion and the nonmetal atom gains electrons to become a negatively charged ion. These oppositely charged ions are then attracted to each other, forming an ionic compound.