The correct option is D Primary, secondary and tertiary
When an alcoholic solution of ammonia is heated with alkyl halides, a mixture of all three types of amines, i.e., primary, secondary and tertiary amines are formed along with a quaternary ammonium salt.
General reaction is as follows:
NH3+R−X→RNH+3X−
Then, the substituted ammonium salt reacts with strong base to give free amine.
General reaction is as follows:
RNH+3X−+NaOH→RNH2+NaX+H2O