The correct option is B Ethanol is the only primary alcohol which gives haloform reaction.
Any compounds containing the CH3C=O group or the CH3CH(CO) group give a positive result with the iodoform test. When I2 and NaOH is added to a compound containing one of these groups, a pale yellow precipitate of iodoform(triiodomethane) is formed.
The correct statement is that ethanol is the only primary alcohol which gives haloform. CH3CH2OH+I2−−−−−→+NaOHCI3CHO+NaOH−−−−−→CHI3(Iodoform)+HCOONa