The correct option is
B KNO3The nitrates of lithium, silver and most divalent and trivalent metals on heating decompose to give reddish brown fumes of nitrogen dioxide and oxygen as the gaseous products.
4 LiNO3 → 2 Li2O + 4 NO2 + O2
2 AgNO3 → 2 Ag + 2 NO2 + O2
Hg(NO3)2 → Hg + 2 NO2 + O2
2 Mg(NO3)2 → 2 MgO + 4NO2 + O2
2 Pb(NO3)2 → 2 PbO + 4 NO2 + O2
4 Al(NO3)3 → 2 Al2O3 + 12 NO2 + 3 O2
But the nitrates of Sodium and other heavier alkali metals - Potassium, Rubidium and Caesium - do not liberate NO2 on heating. They give only oxygen as the gaseous product and the respective nitrite is left as the solid residue.
2 NaNO3 → 2 NaNO2 + O2
2 KNO3 → 2 KNO2 + O2
Hence the correct option is 'B'.