Carbon dioxide (CO2) is formed when one carbon atom bonds with two oxygen atoms. In this molecule, carbon and oxygen form covalent bonds. Specifically, each oxygen atom forms a double bond with the carbon atom.
Thus, the correct answer is:
four covalent bonds (two double bonds).