The correct option is B -4
Let x1,x2 be the roots of the equation x2+px+q=0
and x3,x4 be the roots of the equation x2+qx+p=0.
Hence, x1+x2=−p, x1×x2=q, x3+x4=−q, x3×x4=p ...(1)
According to the question, x1−x2=x3−x4
or, (x1−x2)2=(x3−x4)2 or (x1+x2)2−4x1×x2=(x3+x4)2−4x3×x4 ...(2)
Putting the values from (1) in (2), we obtain (p−q)(p+q+4)=0
Hence, either p = q (not possible otherwise both the equations will become same) or p + q = -4