Answer: A
Ammonia neutralises the acid and makes the medium basic while HX2S is still present, so [SX2−] rises sharply and both FeS (black) and ZnS (white) precipitate prematurely. FeX2+ is not oxidised without HNOX3, so no Fe(OH)X3 forms. MgS is hydrolysed and not precipitated, so MgX2+ stays dissolved.