Explanation:
A compound in which there occurs sharing of electrons from atom to another is known as a covalent compound.
For example, atomic number of hydrogen is 1 and atomic number of oxygen is 8.
As electronic distribution of oxygen atom is 2, 6. So, in order to complete its octet it will share its valence electrons with two hydrogen atoms.
Hence, it will form
compound which is covalent in nature.
Whereas, a compound in which there occurs transfer of electrons from one atom to another is known as an ionic compound.
For example, atomic number of magnesium is 12 and atomic number of chlorine is 17. So, in order to attain stability Mg donates its valence electrons to chlorine atoms which will form an ionic compound
.
Thus, we can conclude that out of the given options compounds are classified as follows.
- Ionic compound -
and 
- Covalent compound -
and