Acidic strength is inversely related to
pKa​: a stronger acid has a lower
pKa​.
The
−NO2​ group is strongly electron withdrawing and stabilises the phenoxide ion, so nitrophenols are more acidic than phenol.
For the two nitrophenols, the para isomer
B is more acidic than the meta isomer
C because the
−NO2​ at the para position can delocalise the negative charge more effectively; hence
pKa​(B)<pKa​(C).
Phenol
A has no electron-withdrawing substituent, so it is less acidic than both nitrophenols:
pKa​(C)<pKa​(A).
The para
−OMe group in
D is electron donating by resonance and destabilises the phenoxide ion, making
D the least acidic:
pKa​(A)<pKa​(D).
Therefore, the increasing order of
pKa​ values is
B<C<A<D.