The order of p values of the following acids is

From the NSE 2018 · NSEC · Chemistry paper. Try it, check your answer, then read the worked solution below.
The order of p values of the following acids is

Try it yourself first, then check your working against this.
Worked solution
Higher p = weaker acid.
p: II > III > I > IV.
(D)
Concepts used: ortho effect, intramolecular H-bonding
Every past question tagged to the same part of the syllabus, with solutions.
All NSE (Olympiad) questions on Chemical Bonding and Molecular Structure
Past questions on the same topic (Acidity of carboxylic acids), each with a worked solution.
Timed, in the real format, and marked the moment you submit.