Choose the correct answer:
 
1. In an ionic compound, ions of opposite charges attract each other. Which type of force is responsible for holding these ions together?
 
2. Why is the formula of magnesium chloride written as \(MgCl_2\)?