JEE Main
Haloalkanes And Haloarenes PYQJEE Main 2021 (Online) 26th August Morning Shift

Solution
Correct option: B
Answer: B
Recognise the test
Treatment with NaOH, followed by dilute HNO3 and then AgNO3, checks whether halide ion is released from the compound.
Use the precipitate colour
A yellow precipitate with AgNO3 indicates formation of silver iodide:
Check which compound releases halide
Among I-IV, only compound IV can lose the halide ion under these conditions.
Eliminate the others
In the other compounds, halide removal would require formation of a highly unstable carbocation, so the halide is not released.
Conclusion
Therefore, the compound giving the yellow precipitate is IV, which is option B.
