why bubbles of oxygen and hydrogen are produced when electrodes sre immersed in water and the current is passed?
When current is passed through water, it decomposes into hydrogen gas and oxygen gas.
Reaction at anode:
2H2O → O2 + 4H+ + 4e-
Reaction at cathode
4H2O + 4e- → 2H2 + 4OH-
Overall reaction:
2H2O → 2H2 + O2
In this way the bubbles of oxygen and hydrogen are produced.