The correct option is D All of the above
When a ammonia acts as the nucleophile, a primary amine is generated.
R−X+NH3→RNH2+HX 1oAmine 2oAmine
When a primary and secondary amine acts as the nucleophile, a secondary and tertiary amine is generated respectively.
R−X+R′NH2→RNHR′+HX 1oAmine 2oAmine
R−X+R′R′′NH→RNR′R′′+HX 2oAmine 3oAmine
Hence option (d) is correct.