Multiple choice Which of the following compounds gives the iodoform test? 3-Pentanone 2-Pentanone Nitrobenzene Aniline Both (3) and (4) Reveal answer Fill a bubble to check yourself B Correct answer Explanation This option is correct because the oxidation of the reaction of methyl ketones with halogen, in the presence of an alkali, gives haloform. Hence, 2-pantanone gives the iodoform test.