The correct option is A H2,Cl2
Chlorine should not come in contact with NaOH during electrolysis of NaCl, otherwise following reaction takes place.
2NaOH+Cl2→NaCl+NaOCl+H2O
To overcome this problem, the anode is separated from the cathode in the electrolytic cell by using a mercury cathode. The mercury cathode cell is known as caster-kellner cell.
The process of preparing NaOH solution by electrolysis of sodium chloride in castner- Kelner cell is called castner - Kellner process.
⇒2Cl−→Cl2+2e−[Anode]2N+a+2e−→2Na[Cathode]2Na+Hg→Na−Hg[Amalgam]2Na−Hg+2H2O→2NaOH+2Hg+H2
The by - products obtained in the process are H2 and Cl2 respectively.