What is formed at the anode and cathode when the following solutions are electrolysed?

sodium iodide
copper II chloride
sodium sulphate
NaOH
HCl
magnesium nitrate

also is this true: if the metal in the compound is higher in the reactivity series than hydrogen then hydrogen is produced instead of the metal at the positive electrode. but shouldnt it be the negative electrode at the cathode because the H plus ions are attracted to the opposite charges??? im not sure what the phrase means??

Yes, metals are deposited at the cathode.