Which one of the following is a covalent compound:
Covalent compounds are those compounds in which the atoms share one or more pairs of electrons present in their valence shells.
Electrovalent compounds are those compounds in which the complete transfer of electrons takes place from one atom to another atom.
A molecule has four chlorine atoms and only one carbon atom.
Each chlorine atom is one short of an octet configuration and carbon is a four-electron sort of a complete valence shell of eight.
Chlorine shares four electrons with the carbon atom results, complete outer shells for carbon and four chlorine atoms.
The bond between carbon and chlorine is established by sharing electrons, so it is a covalent bond.
As a result, is classified as a covalent compound.
Sodium chloride, Aluminum chloride and Magnesium chloride are formed by ionic bonds.
Sodium requires to lose one electron to attain a stable noble gas configuration and Chlorine requires to gain one electron to reach a stable noble gas configuration. So, chlorine accepts an electron transferred by Sodium to form sodium chloride by an ionic bond.
Similarly, Aluminum chloride and Magnesium chloride are formed.
So, all of the three compounds Sodium chloride, Aluminum chloride and Magnesium chloride are ionic compounds.
Hence, option (D) is the correct answer.