The correct option is B CO2
Central atom C has singly occupied p - orbitals which overlaps sidewise to form a π bond with the singly occupied p - orbitals of O resulting in pπ−pπ bonding.
Remember px−px and py−py will overlap to give π bond (considering z as internuclear axis).