Final answer:
Water (b) is a compound that contains both ionic and covalent bonds. In water, the oxygen atom attracts the shared electrons more strongly than the hydrogen atoms, resulting in a polar covalent bond.
Step-by-step explanation:
The compound that contains both ionic and covalent bonds is water (b).
Ionic bonds occur between a metal and a nonmetal, where one atom transfers electrons to another atom. In water, the oxygen atom attracts the shared electrons more strongly than the hydrogen atoms, resulting in a polar covalent bond. The oxygen atom becomes slightly negative while the hydrogen atoms become slightly positive.
Covalent bonds occur between nonmetals, where atoms share electrons. In water, the oxygen atom and two hydrogen atoms share electrons to form a stable molecule.