The correct order of acid strength of the following carboxylic acids is

From the JEE Advanced 2019 · Paper 1 paper. Try it, check your answer, then read the worked solution below.
The correct order of acid strength of the following carboxylic acids is

Try it yourself first, then check your working against this.
Worked solution
Order of acidity.
I > II > III > IV. (B)
Concepts used: sp carbon is most electron-withdrawing, +R of methoxy weakens benzoic acid, +I of ethyl
Every past question tagged to the same part of the syllabus, with solutions.
All JEE Advanced questions on Carboxylic Acids and Derivatives · All JEE Advanced questions on General Organic Chemistry
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.