Concept:
- The iodoform test (\(\text{I}_2/\text{NaOH}\)) is given by compounds containing the group \(\text{CH}_3\text{CO}-\) or \(\text{CH}_3\text{CH(OH)}-\) attached to carbon or hydrogen; ethanol is the only primary alcohol that responds.
- \(\text{I}_2/\text{NaOH}\) first oxidises \(\text{CH}_3\text{CH(OH)}-\) to \(\text{CH}_3\text{CO}-\); the methyl ketone is then triiodinated and cleaved, giving yellow \(\text{CHI}_3\).
Step 1: Look for the \(\text{CH}_3\text{CH(OH)}-\) unit in each option
Option (A) is \((\text{CH}_3)_2\text{CHCH}_2\text{OH}\), 2-methylpropan-1-ol, a primary alcohol with the \(\text{OH}\) on a \(\text{CH}_2\) group; it has no \(\text{CH}_3\text{CH(OH)}-\) unit. Option (B) is \(\text{C}_6\text{H}_5\text{CH(OH)CH}_3\), 1-phenylethanol. The carbinol carbon carries \(\text{OH}\), \(\text{H}\), \(\text{CH}_3\) and the phenyl group: it has the \(\text{CH}_3\text{CH(OH)}-\) unit. Option (C) is \(\text{CH}_3\text{CH}_2\text{CH(OH)CH}_2\text{CH}_3\), pentan-3-ol; the carbinol carbon is flanked by two \(\text{CH}_2\) groups, so there is no methyl on it. Option (D) is \(\text{C}_6\text{H}_5\text{CH}_2\text{CH}_2\text{OH}\), 2-phenylethanol, a primary alcohol other than ethanol.
Step 2: Reaction of option (B)
\[ \text{C}_6\text{H}_5\text{CH(OH)CH}_3\xrightarrow{\ \text{I}_2/\text{NaOH}\ }\text{C}_6\text{H}_5\text{COCH}_3\xrightarrow{\ \text{I}_2/\text{NaOH}\ }\text{C}_6\text{H}_5\text{COONa}+\text{CHI}_3\downarrow \] The yellow precipitate of iodoform (\(\text{CHI}_3\)) shows a positive test.
Step 3: Conclusion
Only \(\text{PhCH(OH)CH}_3\) has the \(\text{CH}_3\text{CH(OH)}-\) group, so it alone gives the iodoform test. Hence, the correct option is (B).