The correct option is B CO2
A compound is a pure substance that is formed when the atoms of two or more different elements combine chemically in definite ratio.
In the given options, Ag and Au represents atoms of silver and gold respectively. They are pure substances which exist as individual elements. Similarly, O2 represents a molecule of oxygen gas, which is a made of two oxygen atoms.
However, CO2 is a combination of one carbon and two oxygen atoms, in a definite ratio. Hence, it is a compound.