Solution

$AgCN$ has a covalent character with the carbon of cyanide primarily bonding via nitrogen due to steric/electronic factors, so reaction of an alkyl halide with $AgCN$ produces the isonitrile (isocyanide) as the major product: $R-X+Ag-C\equiv N\rightarrow R-NC$. Reaction with $KCN$ or $NaCN$ (more ionic) predominantly gives the nitrile ($R-CN$) as the major product via the more nucleophilic carbon end.

Concept Reaction of alkyl halides with cyanide - nitrile vs isonitrile formation

Haloalkanes and Haloarenes in past papers

55 questions from this chapter have appeared across 25 exam years.