[Solution by Dr. Abubacker] $x=2$ is a root: $4+2p+q=0\Rightarrow q=-2p-4$, so $q^2+8q+16=(q+4)^2=4p^2$. The argument is $x^2-4px+4p^2=(x-2p)^2$. Let $u=(x-2p)^2$: $f=\frac{1-\cos u}{u^2}$, which tends to $\frac12$ from below (since $1-\cos u<\frac{u^2}2$). So $0<f<1$ near $x=2p^+$ and $[f]=0$. The limit is $0$. Answer (3).