Dear student
Electrolysis of water means passing electric current through water to decompose it into hydrogen gas and oxygen gas. The reaction that takes place during the process can be shown as:-
2H2O → 2H2 +O2
Graphite rod acts as cathode and anode in water electrolysis.
Hydrogen and oxygen gases are collected at cathode and anode respectively.
At cathode:-
Reduction
2 H+ (aq) +2e- → H2
At anode:-
Oxidation
OH- (aq) → OH + e-
4 OH → 2H2O + O2