The correct option is
B In general, whenever a group is present at the ortho position of benzoic acid, irrespective of its nature (EDG or EWG), it increases the acidic strength as compared to benzoic acid itself. This effect is called ortho effect.
Steric Inhibition of Resonance (SIR) and Electronic factor, both contributes to the ortho effect.
Compound (c) is not a benzoic acid derivative so it does not show ortho effect.
In compound (d),
OH is present at meta position so it does not show ortho effect.
In compound (b), the conjugate base is stabilised by hydrogen bonding.
In compound (a), the conjugate base has SIR (Steric Inhibition of Resonance) along with electrostatic force of attraction.
Thus, compounds (a) and (b) shows ortho effect.