Answer
(a) ionic bonding
(b) covalent bonding
Work Step by Step
(a) The given picture shows that it is ionic bonding. The anions are shown by smaller balls while the larger balls show cations.
(b) The given picture shows that it is covalent bonding. The red larger ball shows the shared electrons between two atoms.