Explain the given reactions with the examples:
Substitution reaction
The reaction in which one of the atoms of a compound is substituted by another is called substitution reaction. Consider the following example:
CH4 + Cl2→ CH3Cl + HCl (in the presence of sunlight)
In this example, one of the hydrogen atoms of methane (CH4) is replaced by a chlorine atom.