Carbon, Group (14) element in the Periodic Table, is known to form compounds with many elements. Write an example of a compound formed with (a) chlorine (Group 17 of Periodic Table) (b) oxygen (Group 16 of Periodic Table)

(a) Carbon forms carbon tetrachloride when reacted with chlorine in the presence of sunlight.

Carbon tetrachloride: $CCl_4$

(b) Carbons forms carbon dioxide or carbon monoxide when reacted with oxygen based on the availability of oxygen.

Carbon dioxide: $CO_2$

Carbon monoxide: CO