For (a), something like the following can be found in Milnor's topology from the differentiable view point, at least in the smooth category.
Claim: There is no smooth retraction from a compact manifold $M$ to its boundary.
Proof: Assume you have such a retraction $r$. By Sard's theorem, some point $p\in \partial M$ is a regular value of $r$ so $r^{-1}(p)$ is a one dimensional submanifold of $M$. Note that since $\{p\}$ is closed in $\partial M$ and $r$ is continuous, $r^{-1}(p)$ is a closed, hence, compact submanifold of $M$. Further, the boundary of $r^{-1}(p)$ must lie on $\partial M$, so must consist of a single point.
Now note that, up to diffeomorphism, there are only two compact one-dimensional manifolds: $[0,1]$ and $S^1$. Hence $r^{-1}(p)$ is a disjoint union of things diffeomorphic to these. In particular, the number of boundary components of $r^{-1}(p)$ is even. This contradiction implies that no such $r$ exists.
$$ $$
To extend this to a proof that there is no continuous retract, I'm fairly certain there is an approximation theorem of the following sort:
Suppose $N\subseteq M$ is a closed submanifold and $f:M\rightarrow P$ is a continuous map with $f|_{N}$ smooth. Then there is a homotopy of $f$ to a smooth map $\tilde{f}:M\rightarrow P$ with $\tilde{f}|_N = f|_N$.
Believing this (if it's even true), given a continuous retraction $r:M\rightarrow \partial M$, the restriction to the closed subset $\partial M$ is smooth. Now apply the theorem to get a smooth retraction $\tilde{r}$ which can't exist by the above argument.