Since Zn is an amphoteric oxide . it can react with both acid and base.
ZnO+ dil HCl→ZnCl2+H2O
ZnO+NaOH→Na2ZnO2
Hence the products in both cases are different.