I have the ideal $I = \{p \in \mathbb{Q}[X]: p(0)=0, p'(0)=0\}$. I have verified that it is an ideal by multipyling an arbitrary element of the ideal with an arbitrary element of $\mathbb{Q}[X]$ and checking the conditions above.
Now since $\mathbb{Q}[X]$ is a Euclidan domain, it is also a principal ideal domain, so $I$ should be generated by a single element. I don't see what such an element could be. The conditions above imply that for all $p \in I$, $a_1=a_0=0$. So we have both odd and even powers of $X$. How can I find an appropriate generating element?
As you noticed, a polynomial $p$ is in $I$ if and only if its coefficients $a_0$ and $a_1$ of $1$ and of $X$ vanish. This happens exactly when $p$ is divisible by $X^2$.