The compounds containing O CH3−C∣∣O− group give positive iodoform test. CH3CN,CH3OH and C6H5OH do not give iodoform test because they don't have CH3=C∣∣O− group.
Only CH3COCH3 (acetone) gives positive iodoform test as it contains CH3CO group. AcetoneCH3COCH3+3I2+NaOH⟶(Yellow coloured solid)IodoformCHI3