The correct option is C Both (a) and (b)
During electrolysis of NaCl, when Cl2 comes in contact with NaOH it produce both NaCl and NaOCl.
2NaOH+Cl2→NaCl+NaOCl+H2O
To overcome this problem, the anode is separated from cathode in the electrolytic cell.