4-Formylbenzoic acid on treatment with one equivalent of hydrazine followed by heating with alcoholic KOH gives the major product

From the KVPY 2014 · Streams SB/SX paper. Try it, check your answer, then read the worked solution below.
4-Formylbenzoic acid on treatment with one equivalent of hydrazine followed by heating with alcoholic KOH gives the major product

Try it yourself first, then check your working against this.
Worked solution
Step 1: one equivalent of hydrazine.
Hydrazine condenses with the more reactive carbonyl, the aldehyde, giving the hydrazone . The carboxylic acid is untouched by one equivalent.
Step 2: alcoholic KOH, heat.
These are Wolff-Kishner conditions: the hydrazone loses and the group is reduced all the way to . The strong base also deprotonates the acid.
Potassium 4-methylbenzoate.
(B)
Concepts used: hydrazone then Wolff-Kishner reduction, alcoholic KOH also deprotonates the acid
Every past question tagged to the same part of the syllabus, with solutions.
All KVPY questions on Aldehydes and Ketones · All KVPY questions on Carboxylic Acids and Derivatives
Past questions on the same topic (Named reactions), each with a worked solution.
Timed, in the real format, and marked the moment you submit.