(a)
The given line makes angles of $\pi/4,\ \pi/4,\ \$and$\ \pi/2$ with the $x$-$,\ y$- and $z$-axes, respectively,
$\Rightarrow$ Direction cosines of the given line are
$\cos{(\pi/4)},\cos{(\pi/4)}$ and $\cos{(\pi/2)}$, or $(1/\sqrt{2}),(1/\sqrt{2})$ and 0