Nitro group is an electron withdrawing group whose effect is most at ortho and para positions, therefore, IV is more acidic than III, which is more acidic than I. Whereas, methyl group is an electron donating group, therefore, it decreases the acidic strength as it destabilizes the anion formed. Hence, II is the least acidic.Option D is correct.