Solution
The nitro group on p-nitroaniline withdraws electrons by both the -I and -R effects. The lone pair on nitrogen is delocalised into the ring and towards the nitro group, so it is much less available to accept a proton. This makes p-nitroaniline the least basic of the four.
Option 1: Aniline is weakly basic because its lone pair is delocalised into the ring, but it has no electron-withdrawing nitro group, so it is more basic than p-nitroaniline.
Option 2: In p-toluidine the +I and hyperconjugation effects of the methyl group increase electron density on nitrogen, so it is more basic than aniline.
Option 4: Ethylamine is an aliphatic amine. Its lone pair is not delocalised and the ethyl group has a +I effect, so it is the most basic of the four.
Basicity order:
