Solution (source code)

= Solution

The standard <normal distribution> has <mean> zero and <variance> one, so $\mathbb E[Z^2]=\operatorname{var}(Z)+(\mathbb E[Z])^2=1$. Part (iv) therefore gives
$$
\boxed{\mathbb E[X]=\sqrt{\frac\pi2}.}
$$
Using the second <moment> from part (iii),
$$
\boxed{\operatorname{var}(X)=\mathbb E[X^2]-(\mathbb E[X])^2=2-\frac\pi2=\frac{4-\pi}{2}.}
$$