Final answer:
Calcium carbonate (CaCO3) contains both ionic and covalent bonds, with ionic bonds between calcium ions and carbonate groups and covalent bonds within the carbonate group itself.
Step-by-step explanation:
Among the substances listed, calcium carbonate (CaCO3) contains both covalent and ionic bonds. In CaCO3, the calcium (Ca) ions form ionic bonds with the carbonate (CO3) groups, whereas within the carbonate group, there are covalent bonds between the carbon (C) and oxygen (O) atoms. Therefore, D. Calcium carbonate (CaCO3) is the correct option that contains both covalent and ionic bonds. In contrast, sodium chloride (NaCl) and water (H2O) only exhibit ionic and covalent bonds respectively, while hydrogen chloride (HCl) is predominantly covalently bonded in the gas phase but can form ionic species in solution.