“Oxidation number denotes the oxidation state of an element in a compound ascertained according to a set of rules formulated on the basis that electron pair in a covalent bond belongs entirely to a more electronegative element.”
Oxidation numbers in :
Hydrogen peroxide carries no charge, it is a neutral compound.
Hydrogen exists in oxidation number. Thus, two hydrogens will have a total of oxidation number.
In the case of Oxygen, the oxidation number of Oxygen in peroxide is . Thus two oxygen atoms will have a total of oxidation number.