Answer
Calcium reacts with chlorine to form ionic chloride called calcium chloride. The reaction is vigorous. Ca(s) + Cl2(g) → CaCl2(s)
(b) Magnesium reacts with very dilute nitric acid to form magnesium nitrate and hydrogen gas Mg(s) + 2HNO3(aq) → Mg(NO3)2(aq) + H2(g)