The iodoform test is given by compounds having the CH3-CO or CH3-CH(CH3).
What about the following molecules:
CH3COCl
CH3COOH
CH3COOCH3
Negative for all. It's positive solely for aldehydes/ketones only. Acyl chlorides, carboxylic acids are exempt. Acyl chlorides hydrolyse in aqueous solution anyway..so negative.
all these groups contain the CH3-C=O group so they should give iodoform test!!
It is for methylcarbonyls and methylalcohols only :)
(CH3)CH(OH) -
(CH3)CO-
Carbonyls cannot be in acid or acid derivatives as it's properties are affected by the OH group nearby