## Chemistry: The Science in Context (4th Edition)

Compounds that consist of molecules are those that contain two or more nonmetals bonded together. In these compounds, electrons are shared among the atoms. In compounds consisting of ions, electrons are transferred from one atom to another, forming ions. It is the attraction of positive and negative charges that create the bond between the ions. Ionic bonds usually happen between a metal and a nonmetal. The metal loses electrons and become positive, forming a cation; the nonmetal gains electrons and becomes positive, becoming an anion. In this problem, (d) NCl$_{3}$ is the only molecular compound because it is a compound made up of two nonmetals: nitrogen (N) and chlorine (Cl). The other options, (a) Mg(OH)$_{2}$, (b) Ba(NO$_{3})_{2}$, and (c) HNO$_{3}$, are all ionic compounds consisting of a metal (or, in the case of hydrogen, an element in group 1 of the periodic table) bonded to one or more nonmetals.