Đáp án D.
Kim loại M hóa trị n
$2 \mathrm{M}+2 \mathrm{nH}^{+} \rightarrow 2 \mathrm{M}^{\mathrm{n}+}+\mathrm{nH}_{2}$
${{n}_{\text{M}}}=\frac{2}{n}.{{n}_{{{\text{H}}_{2}}}}=\frac{2}{n}.0,2=\frac{0,4}{n}~\text{mol}$
${{\text{M}}_{\text{M}}}=\frac{m}{{{n}_{\text{M}}}}=\frac{4,8}{0,4}.n=12.n$
Với $n=2 \Rightarrow \mathrm{M}_{\mathrm{M}}=24$
Vậy M là Mg.