The reaction sequence is analyzed in stages.\r\n
(A) Formation of P: Tetraamminecadmium(II) nitrate, [Cd(NH3)4](NO3)2, reacts with potassium cyanide (KCN). Cyanide (CN-) replaces ammonia (NH3) ligands on Cd2+, forming a tetracyano complex. The balanced reaction is:\r\n
\r\n[Cd(NH3)4](NO3)2 + 4KCN → K2[Cd(CN)4] + 4NH3 + 2KNO3\r\n
\r\nReleased ammonia reacts with water, forming ammonium hydroxide (NH4OH). The major cadmium-containing product P is potassium tetracyanocadmate(II), K2[Cd(CN)4].\r\n\r\n(B) Formation of Q: Product P (K2[Cd(CN)4]) reacts with hydrogen sulfide (H2S), a source of sulfide ions (S2-). Cadmium sulfide (CdS) precipitates as a yellow solid due to its low solubility. The cyanide complex decomposes, especially if the solution becomes acidic. The net reaction is:\r\n
\r\nK2[Cd(CN)4] + H2S → CdS ↓ + 2KCN + 2HCN\r\n
\r\nTherefore, Q is Cadmium Sulfide (CdS).\r\n\r\nMatching P = K2[Cd(CN)4] and Q = CdS to the options, option (A) is correct.\r\n\r\n