The correct option is D
Methane
Methane (CH4) is a covalent compound formed by the sharing of electrons between carbon and hydrogen. This is because carbon has four valence electrons and it is feasible to attain noble gas configuration by sharing electrons rather than losing or gaining four electrons. All the other given compounds are ionic in nature and are formed by the transfer of electrons.
Hence, the correct answer is option (d).