Zn gives H2 gas with H2SO4 and HCI but not with HNO3 because
Zn acts as oxidant when reacts with HNO3
HNO3 is weaker acid than H2SO4 and HCI
In electrochemical series Zinc is above hydrogen
NO3– is reduced in preference to H3O+
In HNO3 , H+ can reduce to H2 and NO-3 can reduce to NO or N2O, NO2.
So NO-3 reduces in preference to H+ or H3O+ when HNO3 acts like oxidant.