Compounds having methyl ketone (−COCH2) group or 2∘ alcohol group (CH3−
CH
|‌‌‌‌
Cl‌‌‌
−) or ethanol when treated with iodine in the presence of alkali gives yellow coloured iodoform and this reaction is called iodoform test. The structures of the given compounds are