Define $A$ to be the family of polynomials containing only even powers of $x$. Is $A$ dense in $C[0,1]$?
How to approach these kind of problems? Would the same technique apply to $B$, the family of polynomials containing only odd powers of $x$ in $C[-1,1]$?
Here is a simple argument which does not require Stone-Weierstrass Theorem: if $f$ is continuous so is $f(\sqrt x)$. If $|f(\sqrt x)-p(x)|<\epsilon$ then $|f(x)-p(x^{2})|<\epsilon$ and $p(x^{2})$ has only even powers of $x$. For the second part note that if a sequence of polynomials with only odd powers of $x$ converges pointwise on $[-1,1]$ then the limit is an odd function. So functions (like the constant function 1) which are not odd cannot be approximated by polynomials with only odd powers.