Answer: D
Reactivity toward nucleophilic acyl substitution follows the leaving-group ability and the lack of resonance donation to the carbonyl: ClX− is the best leaving group, then carboxylate, then alkoxide, then the amide nitrogen (best donor). The order is acyl chloride > anhydride > ester > amide.