Answer: B
Acetone is polar aprotic and dissolves the iodide, whose nucleophilicity is not damped by hydrogen bonding. Sodium chloride (and bromide) are poorly soluble in acetone and precipitate, so by Le Chatelier's principle the equilibrium is displaced to the alkyl iodide.