Since you were asking about Weierstrass Approximation Theorem recently, here's an argument.
Assume first that $f$ is twice continuously differentiable (in particular, a polynomial would satisfy this). Then, integrating by parts,
\begin{align}
\int_0^1(n+1)x^nf(x)\,dx&=\left.\phantom{\int\!\!\!\!}x^{n+1}f(x)\right|_0^1-\int_0^1x^{n+1}f'(x)\,dx\\ \ \\
&=\left.\phantom{\int\!\!\!\!}x^{n+1}f(x)\right|_0^1-\left.\phantom{\int\!\!\!\!}\frac{x^{n+2}}{n+2}f'(x)\right|_0^1+\int_0^1\frac{x^{n+2}}{n+2}\,f''(x)\,dx\\ \ \\
&=f(1)-\frac{f'(1)}{n+2}+\frac{1}{n+2}\int_0^1 x^{n+2} \,f''(x)\,dx.
\end{align}
It is easy to see that the last integral is bounded by $\|f''\|_\infty$ (which is finite since we assume $f''$ continuous). So, in the limit,
$$
\lim_{n\to\infty}\int_0^1(n+1)x^nf(x)\,dx=f(1).
$$
Now, for arbitrary $f$, let $p_n$ be polynomials with $|f-p_n|<1/n$. Then
$$
\left|\int_0^1(n+1)x^nf(x)\,dx-p_n(1)\right|=\left|\int_0^1(n+1)x^nf(x)\,dx-\int_0^1(n+1)x^np_n(x)\,dx\right|\\
=\left|\int_0^1(n+1)x^n[f(x)-p_n(x)]\,dx\right|\leq\int_0^1(n+1)x^n|f(x)-p_n(x)|\,dx\\
\leq\frac1n\,\int_0^1(n+1)x^n\,dx=\frac1n.
$$
As $p_n(1)\to f(1)$, the above shows that
$$
\lim_{n\to\infty}\int_0^1(n+1)x^n\,f(x)\,dx=f(1).
$$