The correct option is D does not change
The oxidation number of barium in barium peroxide and barium oxide remains the same, which is +2. The oxidation number of oxygen changes. In barium peroxide, it is −1, whereas in barium oxide, it is −2 and in oxygen, it is 0.