H2SO4 is a diprotic acid. The equation for its ionization is
H2SO4(aq) --> 2H+ + SO4-
Equation tells us that each molecule of acid will produce 2 hydrogen ions, the concentration of the H+ ion must be 2 x (0.0050M) or .010M
Using the definition of pH=-log[H+]= -log(.010M) = 2
Hence, pH is 2