No, $\mathbb R[X]$ is infinite-dimensional. A basis is $\\{1, x, x^2, \ldots\\}$ (there is no $n$ where this stops). But $U$ is indeed finite-dimensional.
Hint: if $f$ is a polynomial of degree $n$, what is the degree of $f(X+1)-f(X)$?
No, $\mathbb R[X]$ is infinite-dimensional. A basis is $\\{1, x, x^2, \ldots\\}$ (there is no $n$ where this stops). But $U$ is indeed finite-dimensional.
Hint: if $f$ is a polynomial of degree $n$, what is the degree of $f(X+1)-f(X)$?