Carbon dioxide is a linear molecule, so the pull of electrons from one C=O bond is directly opposed by that of the other C=O bond. This means that the molecule is symmetrical, and hence the opposing pulls cancel out and the strongest intermolecukar force possible is only induced dipole/Van der Waals forces.
To find out the shape of a molecule, use VSEPR rules, or sometimes it can just be drawn out in displayed formula.