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.
![](https://df0b18phdhzpx.cloudfront.net/ckeditor_assets/pictures/1750014/original_21.png)
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+.
![](https://df0b18phdhzpx.cloudfront.net/ckeditor_assets/pictures/1750019/original_22.png)
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).