For the following compounds, the correct statement(s) with respect to nucleophilic substitution reactions is(are)
A. I and III follow `S_(N)1` mechanism
B. I and II follow `S_(N)2` mechanism
C. Compound IV undergoes inversion of configuration
D. The order of reactivity for I, III and IV is: `IV gt I gt III`