TITLE: For an ideal $I$ of $K[x]$, $K[x]/I$ is finitely generated iff $I$ is nonnull
QUESTION [5 upvotes]: In a book on rational series, a blunt statement is made to the effect that:

For $K$ a field, $I$ an ideal of $K[x]$, $K[x]/I$ is finitely generated iff $I$ is nonnull.

The statement elaborates with the not-so-enlightening (to me) sentence

This is true since a nonnull ideal in $K[x]$ always has a finite codimension ⁽¹⁾, and the latter is equal to the degree of any generator of this ideal ⁽²⁾.

I gather that if (2) is true, then $K[x]$ may be finitely generated if $K$ itself is finitely generated, but this is as far as I can go.
As for (1), I have a feeling of why this is true, but no proof.
Thus I need help in proving the whole statement :-)  Thanks !

REPLY [2 votes]: When one writes finitely generated, it is always good to specify the particular ring for which this is true. 
E.g. $K[x]$ is always finitely generated as a module over itself (indeed, any ring with unit $R$ is finitely generated --- by $1$ --- as a module over itself).
The statement in your question is about finite generation over $K$, and one could replace finitely generated by finite dimensional (since a $K$-module is the same as a $K$-vector space, and being finitely generated is the same as being finite-dimensional).
So the statement could be made simpler and clearer by writing

For $K$ a field and $I$ an ideal in $K[x]$, the quotient $K[x]/I$ is finite-dimensional as a $K$-vector space if and only if $I$ is non-null. 

The proof of the if direction is as indicated in the other two answers, and the conclusion they lead to is that if $I$ (which is necessarily principal --- the ring $K[x]$ is a PID) is generated by a degree $n$ polynomial, then $K[x]/I$  has dimension $n$ over $K$.  
The proof of the only if direction is easy: if $I = 0$, then $K[x]/I = K[x]$, and it's easy to see that $K[x]$ is infinite dimensional over $K$.