In molecules with multiple bonds, a double bond consists of one \( \sigma \)-bond and one \( \pi \)-bond. A triple bond consists of one \( \sigma \)-bond and two \( \pi \)-bonds.
The molecule CO\( _2 \) contains two \( \sigma \)-bonds from the C–O single bond and two \( \pi \)-bonds from the double bond between C and O. Thus, it has 2 \( \sigma \)-bonds and 2 \( \pi \)-bonds.