The geometry of \(\mathrm{CO}_2\) is linear. As there are no non-bonding pairs, the spape is not even distorted or bent and remain a perfect \(180^{\circ}\) line. This is due to the overlapping of \(s\) and \(p\).
Orbitals of both atoms to form \(s p\) hybrid and \(p \pi-p \pi\) bonding between carbon and oxygen. Hence, option (b) is correct.