The major product obtained in the following reaction is :

From the JEE Main 2019 · 8 Apr · Shift 2 paper. Try it, check your answer, then read the worked solution below.
The major product obtained in the following reaction is :

Try it yourself first, then check your working against this.
Worked solution
Intramolecular aldol. The enolate of the methyl ketone, formed at its internal CH₂, attacks the aldehyde to close a five-membered ring.
Dehydration. On heating, the aldol loses water to give the conjugated enone: 1-acetyl-5-methylcyclopentene, with the acetyl group on the C=C and CH₃ on the neighbouring sp³ carbon.
(B)
Concepts used: intramolecular aldol
Every past question tagged to the same part of the syllabus, with solutions.
Past questions on the same topic (Aldol and related condensations), each with a worked solution.
Timed, in the real format, and marked the moment you submit.