Answer the following questions based on the passage given:
 
During a chemistry laboratory activity, students observed the formation of two commonly used compounds. One compound was common salt (sodium chloride), which is added to food daily and helps in food preservation. The second compound was magnesium chloride, a substance used in industries and medicines. The students noticed that in both cases, electrons were transferred from the metal atom to the non-metal atom, resulting in the formation of stable compounds.
A. What type of bond is present in magnesium chloride? - .
B. How many electrons are lost by magnesium? - .
C. How many chlorine atoms participate in the formation of magnesium chloride? - .
D. Why is \(NaCl\) stable? - .