The electrode where hydrogen is produced if the metal in the electrolyte is more reactive than hydrogen, where positively charged ions gain electrons and so the reactions are reductions
The electrode where oxygen is produced unless the solution contains halide ions then the halogen is produced, where negatively charged ions lose electrons and so the reactions are oxidations