If the p.m.f. of a random variable $X$ is given by
\[
\begin{array}{c|ccc}
x & 0 & 1 & 2 \\
P(X=x) & q^2 & 2pq & p^2
\end{array}
\]
then, the standard deviation of $X$ is (given $p+q=1$)
Show Hint
Always verify that probabilities sum to $1$ before calculating mean and variance.