Carbon Dioxide consists of 1 carbon atom covalently bonded to two oxygen atoms.Carbon is in group 4 and so has 4 electrons in its outer shell.Carbon shares two pairs of electrons with each of the oxygen atoms to acquire a full outer shell of 8 electrons.CO2 has a linear shape because the two regions of electron density repel each other to acquire maximum separation of 180 degrees.