A positive carbylamine test is given by the primary amines, here in the given options only 2,4− dimethylaniline is the primary amine so, only this amine will give the carbylamine test.
In this test, primary amines react with the chloroform in presence of basic KOH solution and isocyanide is formed.