The correct option is A H2,Cl2
Chlorine should not comes in contact with NaOH during electrolysis of NaCl, otherwise following reaction will 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 Castner-Kellner cell.
The process of preparing NaOH solution by electrolysis of sodium chloride in Castner-Kellner cell is called Castner-Kellner process.
2Cl−→Cl2+2e− [Anode]2Na++2e−→2Na [Cathode]Na+Hg→Na−Hg [Amalgam]2Na−Hg+2H2O→2NaOH+2Hg+H2
The by-products obtained in the process are H2 and Cl2 respectively.