Among the following the one that gives positive iodoform test upon reaction with and NaOH is
A compound gives a positive iodoform test if it contains either a methyl ketone group, , or an alcohol that can be oxidized to a methyl ketone, i.e., compounds containing the group .
For option (A), is pentan-3-ol. On oxidation, it forms pentan-3-one, , which is not a methyl ketone. Hence, it does not give the iodoform test.
For option (B), is a primary alcohol. On oxidation, it gives phenylacetaldehyde, , which does not contain the group. Hence, it does not give the iodoform test.
For option (D), contains the group. It is first oxidized by to acetophenone, , which is a methyl ketone. Acetophenone then undergoes the iodoform reaction to give yellow precipitate of .
Therefore, gives a positive iodoform test and hence option (D) is the correct answer.
Tagged Distinguishing tests for aldehydes and ketones. Machine-assigned, so read it as a strong shortlist rather than a verdict.