(a) R, 4-methoxybenzoic acid, is the odd one out. Its pKa is 4.46 (NCERT), higher than 4.19, so it is weaker than benzoic acid.
–OCH3 has two opposing effects: –I through the σ-bonds (O is electronegative) and +R, in which the oxygen lone pair is delocalised into the ring. At the para position the +R effect pushes electron density onto the ring carbon that carries –COO−. This outweighs the –I effect and destabilises the carboxylate ion. P (–NO2, strong –I and –R), Q and S (halogens, net –I) all stabilise the anion and are stronger than benzoic acid.
(b) A halogen at the para position acts in two opposing ways: –I (withdraws, raises acidity) and +R (donates a lone pair into the ring, lowers acidity).
- Fluorine has the stronger –I effect, but its lone pairs are in 2p orbitals, the same size as carbon's 2p orbitals. The overlap is good, so its +R donation is also strong and cancels most of its –I effect.
- Chlorine's lone pairs are in larger 3p orbitals, which overlap poorly with carbon's 2p orbitals. Its +R effect is weak, so its –I effect is left largely uncancelled.
The net electron withdrawal is therefore greater for 4-Cl than for 4-F. In FCH2COOH and ClCH2COOH the halogen is on an sp3 carbon with no π-system, so there is no +R effect and only electronegativity (–I) matters: F wins there.

Decreasing acid strength:
4-nitro (3.41)>4-chloro (3.98)>4-fluoro (4.14)>benzoic acid (4.19)>4-methoxy (4.46)
(4-nitrobenzoic acid is 104.19−3.41=100.78≈6 times stronger than benzoic acid.)