(d) N-Methylaniline
The carbylamine test is a chemical test used to distinguish between primary, secondary, and tertiary amines based on their reaction with chloroform (also known as trichloromethane) and alcoholic potassium hydroxide. The test produces foul-smelling isocyanides (carbylamines) as a result of the reaction.
The carbylamine test is positive for primary amines, and N-Methylaniline is an example of a primary aromatic amine. The reaction involves the formation of an isocyanide, which is characterized by its distinct, unpleasant odor.