The iodoform test is positive for methyl ketones and alcohols that can be oxidized to methyl ketones. 3-pentanone does not have a methyl group attached to the carbonyl carbon, so it gives a negative test.