For the second part the reasoning is similar to that of the first part.
Let $E$ be the expected number of throws.
$$E=\frac12+\frac12(E+1),$$
since after the first throw either you stop (head, probability $1/2$) or you continue (tail, probability $1/2$) and in this second case your new expected number is $E+1$.
Thus $E=2$.