Carbon dioxide is a linear molecule hence, number of vibrational modes is equal to four.
We know that Number of vibrational modes for linear molecule = 3n − 5
So, the number of vibrational modes of CO2 Molecule = 3 x 3 − 5 = 4