(a) Direct nitration of aniline has two problems. First, the ring is so highly activated that it gives tarry oxidation products. Second, in the strongly acidic nitrating mixture aniline is protonated to the anilinium ion, which is meta directing, so a large amount of m-nitroaniline forms. Acetylation converts –NH2 into –NHCOCH3. The nitrogen lone pair is then shared with the C=O group, so the activating effect is moderated and the group is no longer protonated. Nitration becomes controlled, and the p-nitro derivative is the major product. It is hydrolysed back to p-nitroaniline afterwards.
(b) A lower pKb means a stronger base. In m-nitroaniline, the –NO2 group withdraws electron density from the ring by its strong –I effect. This makes the nitrogen lone pair even less available for a proton, so m-nitroaniline is a weaker base than aniline and has the higher pKb. Equivalently, aniline has the lower pKb.
(c) A primary amine gives an N-alkylbenzenesulphonamide, C6H5SO2NHR. The hydrogen still on nitrogen is strongly acidic because of the strongly electron-withdrawing sulphonyl group. NaOH removes it and forms a soluble sodium salt:
C6H5SO2NHR+NaOH→C6H5SO2N−R Na++H2O

A secondary amine gives C6H5SO2NR2, which has no H on nitrogen. It cannot form a salt with NaOH, so it stays insoluble.
(d) Methyl chloride with anhydrous AlCl3 is a Friedel–Crafts alkylation. Aniline is a Lewis base and AlCl3 is a Lewis acid, so they form a salt at the –NH2 group. The nitrogen acquires a positive charge and becomes a strongly deactivating group, so the ring no longer undergoes electrophilic substitution. The catalyst is also used up. Hence aniline does not undergo Friedel–Crafts reactions.
