The Haloform reaction is given by aldehydes and ketones containing three α−H atoms and alcohols containing group. In other words all the methyl ketones
and only acetaldehyde (ethanal) (CH3CHO) can give this test.
CH3CH2OH⟶NaOH+I2CHI3+HCOO−
C2H5COCH2CH3⟶NaOH+I2 does not give Haloform test.