Step 1: Understand the nature of the acid.
Hydrochloric acid (HCl) is a strong acid, meaning it dissociates completely in water:
\[
\text{HCl} \rightarrow \text{H}^+ + \text{Cl}^-
\]
Step 2: Calculate the concentration of hydrogen ions.
Since HCl dissociates completely, the concentration of hydrogen ions \( [\text{H}^+] \) is equal to the concentration of the acid:
\[
[\text{H}^+] = 0.01 \, \text{M}
\]
Step 3: Use the pH formula.
The pH of a solution is given by:
\[
\text{pH} = -\log [\text{H}^+]
\]
Substitute the concentration of \( \text{H}^+ \):
\[
\text{pH} = -\log (0.01) = 2
\]
Answer: Therefore, the pH of the solution is 2.