In the following compounds, the order of acidity is
IV > III > I > II
+I effect decreases acidity, –I and –R effect increases acidity. NO2 group cannot exert –R effect at the meta position so meta nitro benzoic acid is less acidic than ortho nitro benzoic acid.