Step 1: Rule used:
For electrolysis with inert electrodes, list all species that can be reduced at the cathode and all that can be oxidised at the anode, and then pick the easier one in each case.
Step 2: Dilute sulphuric acid:
Possible cathode reactions: $\mathrm{H^+}$ or water getting reduced. The acid supplies $\mathrm{H^+}$, so hydrogen is liberated.
Possible anode reactions: sulphate going to peroxodisulphate, or water going to oxygen. At low concentration oxidation of water wins.
Overall change: $\mathrm{2H_2O \rightarrow 2H_2 + O_2}$. So hydrogen collects at the cathode, and oxygen at the anode, in a 2 to 1 volume ratio.
Step 3: Copper chloride solution:
Cathode choices: $\mathrm{Cu^{2+}}$ ($E^{\circ} = +0.34$ V) and water (about -0.83 V). The more positive value is reduced first, so copper is deposited.
Anode choices: $\mathrm{Cl^-}$ ($E^{\circ}$ for $\mathrm{Cl_2/Cl^-}$ is +1.36 V) and water (+1.23 V). Chlorine is liberated because oxygen formation is slow (overpotential).
Overall change: $\mathrm{CuCl_2 \rightarrow Cu + Cl_2}$.
Final Answer:
Dilute $\mathrm{H_2SO_4}$: $\mathrm{H_2}$ at cathode, $\mathrm{O_2}$ at anode.
Aqueous $\mathrm{CuCl_2}$: Cu at cathode, $\mathrm{Cl_2}$ at anode.