When magnesium ribbon is heated to redness in an atmosphere of nitrogen and subsequently cooled with water, the gas evolved is-

(A) ${N}_{2}$

(B) $N{H}_{3}$

(C) ${H}_{2}$

(D) $C{O}_{2}$