Solution

A yellow precipitate of iodoform ($CHI_3$) is given by compounds having the $CH_3-CO-$ group attached to C or H.
Acetophenone has this group: $C_6H_5COCH_3 \xrightarrow{I_2/NaOH} C_6H_5COONa + CHI_3\downarrow$
In methyl acetate and acetamide the $CH_3CO-$ group is attached to O or N, so they do not give the test.
As per the key the answer is acetophenone.

Concept Iodoform test

Tests for carbonyl compounds in past papers

3 questions from this chapter have appeared across 2 exam years.