The correct option is
C Z > X > Y > W
Comparing Acidic strength of given compounds :
Acidic strength
∝ stability of conjugate base
Let’s look at the conjugate bases of each given compound.
group at ortho and para position are conjugated with the negative charge. So, it stabilises the conjugate base by negative Mesomeric effect. (Resonance stabilisation).
So, Z and X will be more acidic as compared to Y and W.
Acid X will have less acidic strength than Z due to the intramolecular hydrogen bonding, which is why it will be reluctant to donate an
H+.
Y will be more acidic than W due to greater negative inductive effect of
–COCH3 than -Cl.
So, order of acidic strength will be:
Z > X > Y > W
Therefore, the correct answer is option (B).