Answer explained
What do you understand by electrolysis?
Electrolysis is a chemical change or decomposition caused by passing electric current through a suitable molten ionic compound or electrolyte solution.
For example, acidified water can be decomposed into hydrogen and oxygen:
2H₂O → 2H₂ + O₂, using electrical energy.
Reduction occurs at the cathode and oxidation at the anode. The electric supply drives the reaction.