Write the structure of the major organic product in each of the following reactions:
(i)CH3CH2CH2Cl+NaI→acetone heat
(ii)(CH3)3CBr+KOH→ethanol heat
(iii)CH3CH(Br)CH
CH3+NaOH→water
(iv)CH3CH2Br+KCN→aq.ethanol
(v)C6H5ONa+C2H5Cl→
(vi)CH3CH2CH2OH+SOCl2→
(vii)CH3CH2CH=CH2+ HBr→peroxide
(viii)CH3CH=C(CH3)2+HBr→
A compound (A) with molecular formula $C_4H_9I$ which is a primary alkyl halide, reacts with alcoholic KOH to give compound (B). Compound (B) reacts with HI to give (C) which is an isomer of (A). When (A) reacts with Na metal in the presence of dry ether, it gives a compound (D), C8H18, which is different from the compound formed when n-butyl iodide reacts with sodium. Write the structures of A, (B), (C) and (D) when (A) reacts with alcoholic KOH.