An element X forms the following compounds with hydrogen, carbon and oxygen:
H2X, CX2, XO2, XO3
Valency of X -
(i) In H2X: -2
(ii) In CX2: -2
(iii) In XO2: +4
(iv) In XO3: +6