Step 1: Understanding the Concept
In molten \(\text{NaCl}\) the only ions present are \(\text{Na}^{+}\) and \(\text{Cl}^{-}\). There is no water, so no \(\text{H}^{+}\) or \(\text{OH}^{-}\) ions.
Oxidation always occurs at the anode and reduction at the cathode.
Step 2: Anode process
The anode attracts the negative ions, so \(\text{Cl}^{-}\) ions lose electrons.
\(2\text{Cl}^{-}\rightarrow \text{Cl}_{2(g)}+2\text{e}^{-}\)
Step 3: Compare the options
Options A and B need \(\text{OH}^{-}\) or \(\text{H}^{+}\) from water, which is absent in the molten salt. Option C is the reduction of \(\text{Na}^{+}\) at the cathode. Only option D is the oxidation of chloride at the anode.
Final Answer:
Chlorine gas is liberated at the anode as chloride ions are oxidised.
\[ \boxed{\text{(D) }2\text{Cl}^{-}\rightarrow \text{Cl}_{2(g)}+2\text{e}^{-}} \]