Answer
The required probability is, $\frac{1}{4}$
Work Step by Step
The sample space of equally likely outcomes is $\left\{ HH,HT,TH,TT \right\}$; therefore, $ n\left( S \right)=4$
Assume $ E $ to be the event of obtaining two heads; then $ E=\left\{ HH \right\}$ so, $ n\left( E \right)=1$
Thus, the probability of two heads is:
$\begin{align}
& P\left( E \right)=\frac{n\left( E \right)}{n\left( S \right)} \\
& =\frac{1}{4}
\end{align}$