Give one method for industrial preparation and one for laboratory preparation of $\mathrm{CO}$ and $\mathrm{CO}_{2}$ each.
Caron dioxide
In the laboratory, CO2 can be prepared by the action of dilute hydrochloric acid on calcium carbonate. The reaction involved is as follows:
$\mathrm{CaCO}_{3}+2 \mathrm{HCl}_{(a q)} \longrightarrow \mathrm{CaCl}_{2(a q)}+\mathrm{CO}_{2(g)}+\mathrm{H}_{2} \mathrm{O}_{(r)}$
$\mathrm{CO}_{2}$ is commercially prepared by heating limestone. The reaction involved is as follows:
$\mathrm{CaCO}_{3} \stackrel{\Delta}{\longrightarrow} \mathrm{CaO}+\mathrm{CO}_{2} \uparrow$
Caron monoxide
In the laboratory, $\mathrm{CO}$ is prepared by the dehydration of formic acid with conc. $\mathrm{H}_{2} \mathrm{SO}_{4}$, at $373 \mathrm{~K}$. The reaction involved is as follows:
$\mathrm{HCOOH} \frac{373 \mathrm{~K}}{\text { conc. } \mathrm{H}_{2} \mathrm{SO}_{4}} \mathrm{H}_{2} \mathrm{O}+\mathrm{CO} \uparrow$
CO is commercially prepared by passing steam over hot coke. The reaction involved is as follows:
$\mathrm{C}_{(s)}+\mathrm{H}_{2} \mathrm{O}_{(g)} \stackrel{473-1273 \mathrm{~K}}{\longrightarrow} \underbrace{\mathrm{CO}_{(g)}+\mathrm{H}_{2(g)}}_{\text {watr gas }}$