Among the following compounds, the increasing order of their basic strength is :

From the JEE Main 2017 · 9 Apr · Shift 1 paper. Try it, check your answer, then read the worked solution below.
Among the following compounds, the increasing order of their basic strength is :

Try it yourself first, then check your working against this.
Worked solution
Pyrrole's lone pair is part of its aromatic sextet, so it is the weakest base. In aniline the lone pair is delocalised into the ring. Cyclohexylamine is a primary alkylamine, and N-methylpiperidine, a tertiary amine with alkyl groups pushing electrons onto N, is the strongest: II < I < IV < III.
Concepts used: basicity of amines
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 General Organic Chemistry
Past questions on the same topic (Amines), each with a worked solution.
Timed, in the real format, and marked the moment you submit.