The order of acidity of compounds I-IV, is

From the KVPY 2010 · Streams SB/SX paper. Try it, check your answer, then read the worked solution below.
The order of acidity of compounds I-IV, is

Try it yourself first, then check your working against this.
Worked solution
So I < III < II < IV.
(A)
Concepts used: acidity of alcohols, phenols, carboxylic and sulfonic acids
Every past question tagged to the same part of the syllabus, with solutions.
All KVPY questions on General Organic Chemistry · All KVPY questions on Alcohols, Phenols and Ethers · All KVPY questions on Carboxylic Acids and Derivatives
Past questions on the same topic (Acidity and basicity), each with a worked solution.
Timed, in the real format, and marked the moment you submit.