All possible outcomes are HH, HT, TH and TT.
Total number of outcomes = 4.
Getting 2 heads means getting HH.
Numbers of favourable outcomes = 1.
∴ P(getting 2 heads) =
=
Thus, the probability of getting 2 heads is .
Hence, the correct answer is option (d).