electrolysis in aqueous solution, at the cathode if the metal is below hydrogen the metal will be discharged, if the metal is above hydrogen then hydrogen gas will be discharged. At the anode if the ionic compound is a halide- halogen (chlorine, bromine, iodine) will be discharged , everything else oxygen gas discharged