Step 1: Understanding the structure of allyl chloride.
Allyl chloride consists of a three-carbon chain (\( \text{C}_3 \)) with a chlorine atom attached to the terminal carbon. The structure is \( \text{CH}_2\text{=CH-CH}_2\text{Cl} \), giving the molecular formula \( \text{C}_3\text{H}_5\text{Cl} \). Step 2: Conclusion.
The correct answer is (B) \( \text{C}_3\text{H}_5\text{Cl} \).