The compound that does not produce nitrogen gas by the thermal decomposition is:
Ba(N3)2
(NH4)2Cr2O7
NH4NO2
(NH4)2SO4
Correct answer: (NH4)2SO4
Solution
Ba(N3)2 -> Ba + 3N2, (NH4)2Cr2O7 -> N2 + Cr2O3 + 4H2O, and NH4NO2 -> N2 + 2H2O all release N2. (NH4)2SO4 on heating gives NH3 and H2SO4 (and NH4HSO4), never N2, so it is the compound that does not produce nitrogen gas.