Answer: Magnesium
Step-by-step explanation:
Galvanic cell is a device which is used for the conversion of the chemical energy produces in a redox reaction into the electrical energy.
The standard reduction potential for magnesium and zinc are as follows:
![E^0_([Mg^(2+)/Mg])= -2.37V](https://img.qammunity.org/2017/formulas/chemistry/high-school/imey7y9yan1grt75jwgezjj2hmrlft1pm0.png)
![E^0_([Zn^(2+)/Zn])=-0.76V](https://img.qammunity.org/2017/formulas/chemistry/high-school/d4aj10xpmggrfo5ybce0v66w48n8ifjhdt.png)
Reduction takes place easily if the standard reduction potential is higher (positive) and oxidation takes place easily if the standard reduction potential is less (more negative).
Here Mg undergoes oxidation by loss of electrons, thus act as anode. Zinc undergoes reduction by gain of electrons and thus act as cathode.


Thus magnesium gets oxidized.