The correct option is D (−∞,0)
Let f(x)=x2−(a+2)x+7a4
Case 1: Both the roots are negative
(i) D≥0
D=(a+2)2−7a≥0
⇒a2−3a+4≥0⇒(a−32)2+154≥0⇒a∈R
(ii) f(0)>0⇒a>0
(iii) −b2a<0⇒a+22<0⇒a<−2
∴a∈ϕ ⋯(1)
Case 2: One root is positive and other root is negative
So, 0 lies in between the roots.
⇒f(0)<0
⇒a<0 ⋯(2)
Case 3: One roots is 0 and other is negative.
(i) f(0)=0⇒a=0
(ii) −b2a<0⇒a<−2
∴a∈ϕ ⋯(3)
From (1),(2) and (3)
a∈(−∞,0)