Concept:Compounds having a hydrogen atom bonded to oxygen, such as carboxylic acids and alcohols, can release hydrogen gas when treated with sodium metal.
Explanation:I.
CH3COOH is ethanoic acid, a carboxylic acid.
It contains an acidic hydrogen attached to oxygen.
This hydrogen is replaced by sodium, releasing hydrogen gas:
2CH3COOH+2Na→2CH3COONa+H2So compound I releases hydrogen.
II.
CH3CH2OH is ethanol, an alcohol.
It has a hydroxyl group, so its hydrogen attached to oxygen is reactive toward sodium.
The reaction is:
2CH3CH2OH+2Na→2CH3CH2ONa+H2Thus compound II also releases hydrogen.
III.
CH3COOCH3 is an ester.
It has no hydrogen atom directly attached to oxygen in a replaceable form.
Therefore, it does not react with sodium metal to release hydrogen gas.
Answer:B. I and II only