The correct answers are:
1. B. Mg loses two electrons.
When Mg and Br combine, 2 atoms of Br attaches itself to Mg. The chemical reaction is:
Mg + Br ---> MgBr2
Since Br is more electronegative than Mg, then Mg loses an electron per Br therefore losing 2 electrons.
2. D. An atom that gains electrons must be attracted to an atom that loses electrons.
An ionic bond is formed when one molecule is more electronegative than the other molecule which results in gaining and losing of electrons. The more electronegative molecule gains electron while the less electronegative loses electron.