You must determine what will exist in cathode and anode and what process will occur. In fact, cell is cell and electrolysis is electrolysis:
Each aqueous solution below undergoes electrolysis. Consult a table of redox potentials to predict the reaction occuring at each electrode as well as the overall cell reaction.
Don't understand, explain more plz.
However, in cathode the reduction process happen while in the anode the oxidizing process occurs.