The correct options are
A Coal
B Petroleum
C Biogas
D Natural gas
Coal, petroleum and natural gas are fossil fuels and are obtained from the fossils of dead plants and animals, under high temperature and pressure, over millions of years. Carbon is the building block of all plants and animals.
Hence, they contain carbon in them.
Biogas is produced by decomposing biodegradable wastes, in the absence of oxygen. It contains majorly contains methane gas (about 60%-90%) along with traces of butane, propane, etc., all of which are hydrocarbons. Thus, all of these contain carbon in them.