The correct option is C 2
Roots of (x−a)(x−a−1)=0 are a,a+1.
Roots of (x+a)(x+a2−2)=0 are −a,−a2+2.
Let f(x)=(x+a)(x+a2−2).
Since the roots of (x−a)(x−a−1)=0 lie between roots of (x+a)(x+a2−2)=0.
⇒f(a)=(a+a)(a2−2+a)<0
(2a)(a2−2+a)<0=(2a)(a−1)(a+2)<0
⇒a∈(−∞,−2)∪(0,1)
f(a+1)=(2a+1)[a+1−2+a2]<0=(2a+1)(a2+a−1)<0
=(2a+1)(a+1+√52)(a+1−√52)<0a∈(−∞,−1+√52)∪(−12,−12+√52)
⇒a∈(−∞,−2)∪(0,−1+√52)
p=−2 , q=0⇒q−p=2.