The correct option is D Ethanol
Those compound which contain −O||C−CH3
group gives iodoform test. So, CH3−O||C−H
(oxidation product of ethanol, CH3CH2OH) gives iodoform test. Ethanol is the only primary alcohol to give the triiodomethane (iodoform) reaction.
Option B is correct.