(a). Formation of oxygen molecule (O2)
Each oxygen atom has six valence electrons (2, 6). These two atoms achieve a stable electronic configuration (octet) by sharing two pair of electrons. Hence a double bond is formed in between the two atoms.

(b). Formation of Magnesium Chloride (MgCl2)
Magnesium Chloride (MgCl2) is an ionic compound formed when the magnesium ion loses two electrons to gain the noble state which is accepted by chloride ion.

(c). Formation of coordinate covalent bond between NH3 ➝ BF3 molecules
NH3 ➝ BF3 is a compound formed by coordinate covalent bonding. Here one pair of electrons from ammonia molecule is shared with electron deficit boron trifluoride. This type of bonding is also known as Dative bond.

(d). Formation of nitrogen molecule (N2)
Nitrogen molecule (N2) is formed by three covalent bonds where three pairs of electrons are shared between the two to achieve a stable configuration.

(e). Formation of coordinate covalent bond in ammonium ion (NH4+)
In ammonia molecule the central nitrogen atom has five valence electrons (2,5) among which three electrons are shared with three hydrogen atoms and still it has an unshared lone pair of electrons. This lone pair electrons are donated to a Hydrogen ion and thus a N ➝ H coordinate covalent bond is formed in ammonium ion molecule (NH4+)