The correct option is A by heating ammonium nitrate.
to prepare pure nitrogen in laboratory a mixture of ammonium chloride and sodium nitrite is heated. The product formed is ammonium nitrite. This compound is very unstable and breaks into nitrogen and water.