The correct option is D neither real nor purely imaginary roots
If quadratic equation has purely imaginary roots, then coefficient of x must be equal to zero.
∴p(x)=ax2+c with a,c having same sign and a,c ∈ R.
Then, p[p(x)]=a(ax2+c)2+c∴p[p(x)]=a3x4+2a2cx2+(ac2+c)
Considering this as a quadratic in x2, and solving it we get:
x2=−2a2c±√(2a2c)2−4(a3)(ac2+c)2a3x2=−ca±i√aca2[∴ a,c have the same sign]
∴ x2has both real and imaginary parts ⇒ x too has both real and imaginary parts.