Carbon dioxide (CO2) has a linear molecular geometry and consists of two bonds between a central carbon atom and two oxygen atoms. Each bond is formed by the sharing of two electrons, one from each atom, resulting in a total of two electron groups around the carbon atom.