Electron donating group `(-OCH_(3))` decreases the acidic strength where as electron withdrawing group `(NO_(2))` increases the same.
Increases order of acidic strength is :
4-Methoxy benzoic acid `lt ` benzoic acid `lt` 4-nitrobenzoic acid `lt 3, `4-dinitro benzoic acid.