The correct option is B 0, 4
For compounds containing C atoms, the oxidation number of C atom =2nO−nHnC
Here, nO,nHandnC represents the number of oxygen, hydrogen and carbon atoms respectively.
For methanal CH2O, the oxidation number of C atom =2nO−nHnC=2×1−21=0
The valency of C in methanal is 4 as it is attached to 2 H atoms by two single bonds and one oxygen atom by a double bond.
H−O||C−H