'A' and 'B' in the following reactions are :
Aniline is treated with NaNO/HCl and then KCN to give (A); (A) with SnCl/HCl/HO gives (B).

From the JEE Main 2021 · 24 Feb · Shift 1 paper. Try it, check your answer, then read the worked solution below.
'A' and 'B' in the following reactions are :
Aniline is treated with NaNO/HCl and then KCN to give (A); (A) with SnCl/HCl/HO gives (B).

Try it yourself first, then check your working against this.
Worked solution
Steps. Diazotisation then KCN (Sandmeyer-type) gives benzonitrile. Stephen reduction (SnCl₂/HCl, then hydrolysis) turns the nitrile into benzaldehyde.
(D)
Concepts used: Stephen reduction
Every past question tagged to the same part of the syllabus, with solutions.
All JEE Main questions on Amines and Nitrogen Compounds · All JEE Main questions on Aldehydes and Ketones
Past questions on the same topic (Diazonium salts), each with a worked solution.
Timed, in the real format, and marked the moment you submit.