Step 1: Plan:
The same starting compound, $\mathrm{C_2H_5Br}$, gives two different products. For the alkene we need a reagent that acts as a base. For the ether we need a reagent that acts as a nucleophile carrying an ethoxy group.
Step 2: Preparation of ethene:
Boil ethyl bromide with a solution of potassium hydroxide in ethanol. The base pulls out a proton from the carbon next to $\mathrm{C-Br}$, and bromide leaves, so a double bond forms (E2 elimination).
\[ \mathrm{C_2H_5Br \xrightarrow[\text{heat}]{\text{alc. KOH}} CH_2=CH_2 + HBr} \]
The $\mathrm{HBr}$ is taken up by KOH as $\mathrm{KBr}$ and water.
Step 3: Preparation of diethyl ether:
Use the Williamson method: an alkyl halide plus a sodium alkoxide. Here both parts are ethyl, so the ether is symmetrical.
\[ \mathrm{C_2H_5Br + C_2H_5O^{-}Na^{+} \rightarrow C_2H_5-O-C_2H_5 + NaBr} \]
A primary halide is used, so substitution wins over elimination.
Final Answer:
Alcoholic KOH converts ethyl bromide to ethene, and sodium ethoxide converts it to diethyl ether.
\[ \boxed{\text{(a) alc. KOH, } \Delta \text{; (b) } \mathrm{C_2H_5ONa}} \]