Option (B) is correct.
Explanation:
An acid is stronger when its carboxylate ion is more stable, i.e. when the group attached to the carboxyl carbon pulls electron density away from –COO−.
Step 1: hybridisation of the attached carbon. An orbital with more s-character holds its electrons closer to the nucleus, so the carbon is more electronegative: sp (50% s) > sp2 (33% s) > sp3 (25% s).
- P: –COOH is on an sp carbon: the strongest electron withdrawal, so P is the strongest acid.
- Q: –COOH is on an sp2 ring carbon. NCERT: direct attachment of phenyl (or vinyl) increases acidity, contrary to the decrease expected from resonance, because the sp2 carbon is more electronegative.
- R: –COOH is on an sp3 carbon of a saturated ring, which releases electrons (+I): the weakest acid.
Step 2: place methanoic acid. H neither donates nor withdraws electrons. The phenyl ring does withdraw by its sp2 carbon, but its π-electrons are also conjugated with the carboxyl group and feed some electron density back towards it (+R). The net effect of phenyl is a mild electron release compared with H, so benzoic acid is weaker than methanoic acid. NCERT's acidity series places HCOOH>C6H5COOH.

Increasing acid strength: R < Q < S < P
The data-table pKa values confirm it: R 4.90, Q 4.19 (NCERT), S 3.75, P 1.89. Propynoic acid is 104.90−1.89=103.01≈1.0×103 times stronger than cyclohexanecarboxylic acid, while benzoic acid is only 104.90−4.19=100.71≈5 times stronger.
Why the other options are wrong:
- (A) treats the triple bond as an electron donor. What decides the matter is the high electronegativity of the sp carbon joined to –COOH, which withdraws electron density and stabilises the carboxylate, so P is the strongest acid (pKa 1.89), not the weakest.
- (C) This is exactly the "decrease expected due to resonance" that NCERT says does not happen. The sp2 electronegativity wins, so benzoic acid (Q) is stronger than the saturated cyclohexanecarboxylic acid (R).
- (D) gets R and P right but reverses Q and S. The resonance donation of the ring partly cancels the sp2 pull, so phenyl is not a better electron-withdrawer than H; methanoic acid is about 104.19−3.75=100.44≈2.8 times stronger than benzoic acid.