The pH of a strong acid, such as HCl, is determined by the formula:
\[
\text{pH} = -\log[\text{H}^+]
\]
For HCl, the concentration of \( \text{H}^+ \) ions equals the molar concentration of HCl, given as \( 0.01 \, \text{M} \).
By substitution:
\[
\text{pH} = -\log(0.01) = -(-2) = 2
\]
Consequently, the solution's pH is 2.