The compounds which contain acetaldehyde, methyl ketones, ethanol, etc. give the iodoform test.
The iodoform test is used to confirm whether a carbonyl compound with an alkyl group or an alcoholic compound with an alkyl group is present in a given compound.
Iodoform is produced when iodine reacts with methyl ketone along with a base.