As I tried, unsuccessfully it seems, to point out, you must first define what you mean by the coefficients of a polynomial. I.e. you must decide whether or not to include coefficients which are zero, among the coefficients.
In the case of 3X^5 +X^2 -4, you must decide what are the coefficients of this polynomial. The answer depends on your idea of what a polynomial is. If you think, as would be quite understandable, that it is what it looks like, i.e. (either 0 or) a finite sum of non-zero multiples of different powers of X, then you might well consider this one to have only three coefficients, (-4,1,3).
Other people might want to include the zero coefficients of the lower powers X, X^3, X^4, and say the coefficients are, in increasing order, (-4,0,1,0,0,3). I myself, using the mathematician's definition of the polynomial ring as an infinite graded direct sum, would say the (infinite) sequence of coefficients is (-4,0,1,0,0,3,0,0,........)
I.e. to answer questions about the coefficients of a polynomial, you must first define what the coefficients of a polynomial are. I can think of three different ways to define "the coefficients" of your polynomial.
1. the coefficients are the non-zero coefficients, i.e. a_0 = -4, a_2 = 1, a_5 = 3, and all others are undefined.
2. the coefficients are those of degree ≤ 5, i.e. a_0 = -4, a_1 = 0, a_2 = 1, a_3 = a_4 = 0, a_5 = 3, and all others are undefined.
3. the coefficients are those of all degrees, i.e.
a_0 = -4, a_1 = 0, a_2 = 1, a_3 = a_4 = 0, a_5 = 3, a_j = 0 for j ≥ 6. This is actually quite common, i.e. most people would probably say the coefficient of X^7 in your polynomial is zero.
A fourth way is to define the coefficients, not of a polynomial, but of a particular finite representation of a polynomial. I.e. if you consider a polynomial to be, as it is often defined, a finite linear combination
a_0 +a_1X + a_2X^2 +......+a_nX^n, of powers of X, then you might want to say the coefficients of this "polynomial" are the n+1 elements of the sequence a_0,........,a_n.
Unfortunately, since some of these may be zero, in particular a_n may be zero, this sequence changes with different representations of the same polynomial. If you say further that a_n ≠ 0, you get our definition #2 above, but it is unusual for a book to define only such non-zero polynomials.
I.e. with this definition of "polynomial" you must say, as some books forget to do, [Dummit-Foote, Abstract Algebra, 3rd ed. p.234], but some do not forget [Van der Waerden, Modern Algebra, trans. by Blum from 2nd German edition, pp.45-6], that two different such finite linear combinations define the same polynomial if and only if their non-zero coefficients are all the same. This of course destroys the uniqueness of this definition of the coefficients, since with this definition, different representations of the same polynomial have different coefficients.
So in order to answer your questions, first make up your mind what you mean by "the coefficients" of your polynomial, and again I recommend reading Mike Artin's discussion of this situation, on pp.350-351, of his Algebra. Or else, just say "non-zero coefficients", if that is what you want in your questions, as others have suggested.