Let's analyze the reaction sequence step by step.
(A) Formation of P: The starting material is tetraamminecadmium(II) nitrate, [Cd(NH3)4](NO3)2. It reacts with potassium cyanide (KCN). Cyanide ions (CN-) are stronger ligands than ammonia (NH3) for Cd2+ and will replace the ammonia ligands. Cadmium(II) typically forms a stable tetracyano complex. The reaction (balancing the cyanide) is:
[Cd(NH3)4](NO3)2 + 4KCN → K2[Cd(CN)4] + 4NH3 + 2KNO3
The ammonia released reacts with water to form ammonium hydroxide (NH4OH, or more accurately NH3 in equilibrium with NH4+ + OH-).
Therefore, the major cadmium-containing product P is potassium tetracyanocadmate(II), K2[Cd(CN)4].
(B) Formation of Q: Product P (K2[Cd(CN)4]) is treated with hydrogen sulfide (H2S). H2S is a source of sulfide ions (S2-). Cadmium sulfide (CdS) is a highly insoluble yellow precipitate. Even though Cd2+ is complexed in [Cd(CN)4]2-, the sulfide ion concentration from H2S is sufficient to precipitate CdS, especially because CdS is very stable and has a very low solubility product (Ksp). The cyanide complex may decompose, particularly if the solution becomes acidic due to H2S. The net reaction leads to the precipitation of CdS.
K2[Cd(CN)4] + H2S → CdS ↓ + 2KCN + 2HCN
Therefore, Q is Cadmium Sulfide (CdS).
Matching the identified products P = K2[Cd(CN)4] and Q = CdS with the options, we find that option (A) is correct.