Answer: D
An electron-withdrawing group stabilises the benzoate ion and raises the acidity, while electron-donating groups (methyl, methoxy) lower it. 4-Nitrobenzoic acid (pKa 3.44) is stronger than benzoic acid (4.20) and the 4-methyl and 4-methoxy acids.