One mole of CO2 contains:
The Avogadro number of molecules and atoms gives the number of entities in a mole, which is approximately 6.023 × 1023 entities per mol.
For CO2 molecule, the entity is a molecule made up of 3 atoms. 1 mole of CO2 contains only 1 carbon atom.
Therefore, there are 6.023 x 1023 atoms of carbon.
Thus, option D is correct.