The correct option is D Oxidation state of hydrogen is +1
The oxidation state of carbon is +4.
The oxidation state of hydrogen is +1.
The oxidation state of oxygen is -2.
The oxidation state of magnesium is +2.
Hence, option (C) is the correct statement.