Solution:-
Solution C gives precipitate with NaOH solution which is soluble in excess of NaOH solution, hence the cation should be of amphoteric metal like Zn or Al. Again solid F is soluble in HCl and gives white precipitate with BaCl2. Therefore anion must be SO42− ion.
Now A gives offensive smelling gas hence the A may be ZnS or Al2S3. But Al2S3 on heating in air does not form Al2(SO4)3.
ZnS(A)+2HCl⟶ZnCl2(C)+H2S(B)↑
ZnCl2(C)+2NaOH⟶Zn(OH)2(D)↓+2NaCl
D dissolves in excess of NaOH.
Zn(OH)2(D)+NaOH(excess)⟶Na2ZnO2+2H2O
A on strong heating in air gave a strong smelling gas E and a solid F.
ZnS(A)+3O2⟶2ZnO(E)+2SO2
ZnS(A)+2O2⟶ZnSO4(F)
F gave a precipitate with BaCl2.
ZnSO4(F)+BaCl2⟶BaSO4↓(ppt.)+ZnCl2
Hence
A→ZnS
B→H2S
C→ZnCl2
D→Zn(OH)2
E→ZnO
F→ZnSO4