Metallic magnesium is prepared by (a) Reduction of MgO by coke (b) Electrolysis of aqueous solution of Mg(NO3)