(i) P is N-ethylbenzenesulphonamide, C6H5SO2NHC2H5, and Q is N-ethylbenzamide, C6H5CONHC2H5. P has the more acidic N–H hydrogen.
- In P, nitrogen is bonded to a sulphonyl group, −SO2−, in which sulphur carries two oxygen atoms. It is a strongly electron-withdrawing group: it pulls electron density away from N and weakens the N–H bond. When H+ is lost, the negative charge on N is spread over nitrogen and both S=O oxygens, so the anion is well stabilised.
- In Q, nitrogen is bonded to a carbonyl group with a single oxygen. It withdraws electrons much less strongly, and the anion would be far less stabilised.
NCERT: the hydrogen attached to nitrogen in a sulphonamide is strongly acidic due to the strong electron-withdrawing sulphonyl group.
(ii) P dissolves in aqueous NaOH, because it is acidic enough to be converted into its water-soluble sodium salt. Q does not dissolve: its N–H is not acidic enough to react with dilute alkali.
C6H5SO2NHC2H5+NaOH⟶[C6H5SO2NC2H5]−Na++H2O

This is why, in the Hinsberg test, the product from a primary amine dissolves in alkali.