Match the major products obtained in the reactions given in List-I with the corresponding structures in List-II and choose the correct option.

Four classic name reactions of nitrogen-containing compounds are involved: Sandmeyer cyanation, Hoffmann bromamide degradation, Gabriel phthalimide synthesis and the carbylamine test. By recalling the characteristic product of each reaction, we can match every entry of List-I (P, Q, R, S) with one structure from List-II (1 - 5).
Case P : Sandmeyer cyanationAn aryl diazonium salt reacts with to give the corresponding aryl nitrile.
The product is benzonitrile, structure (1). Hence .
Case Q : Hoffmann bromamide degradationWhen an amide is treated with and alcoholic , the carbonyl carbon is lost as and a primary amine containing one carbon fewer is produced.
The product is methylamine, structure (2). Hence .
Case R : Gabriel phthalimide synthesis followed by hydrazinolysisStep 1 - phthalimide is converted to its potassium salt, which undergoes substitution with an alkyl halide (say ).
Step 2 - hydrazinolysis (or acid/base hydrolysis) liberates the primary amine.
Overall:
The product is ethylamine, structure (4). Hence .
Case S : Carbylamine (isocyanide) reactionPrimary amines, chloroform and alcoholic give the offensive-smelling isocyanide (carbylamine).
The product is phenyl isocyanide, structure (5). Hence .
Collecting the four matches:
Therefore the correct option is
Option B which is: (P) (1), (Q) (2), (R) (4), (S) (5).
Tagged Nucleophilic addition reactions of carbonyl compounds. Machine-assigned, so read it as a strong shortlist rather than a verdict.