The correct option is D 2MgO(s)+C(s)
Generally metals like sodium, potassium and calcium reacts with carbon dioxide and form their respective carbonates. Magnesium unlike these metals forms its oxide instead of carbonate.
Magnesium gets oxidised in presence of CO2 to form magnesium oxide and carbon solid residue.
The complete reaction is:
2Mg (s)+CO2(g)→ 2MgO(s)+C(s)