Here we have to choose the correct statement among the given statements.
The true statement is-
Compound D is covalent because both atoms are in need of electrons.
The covalent compounds are those in which both the atom needs electrons and on the other hand ionic compounds are those in which one atom loose electron and other gain electron.
The atoms of the noble gas (except He) contains 8 electrons in their outermost shell. The high stability of the 8 electrons in the outermost shell of any atoms leads to the formation of covalent compound between two atoms.
Here the compound C posses two atoms atom 1 and atom 2 which posses 7 and 2 electrons respectively so atom 1 and atom 2 both needs electrons to get the 8 electrons in the outer shell. Thus it will be more ionic in nature.
The compound D posses two atoms having 6 and 5 valence electrons respectively. Thus atom 1 need 2 electrons and atom 2 needs 3 electrons to get the 8 electrons in the valence shell. so both the atom need electrons it will be covalent in nature.