Let α and β be the roots of x2+ax+1=0.
By Vieta’s relations, α+β=−a and αβ=1.
For any two numbers, (α−β)2=(α+β)2−4αβ.
Substituting the Vieta values, (α−β)2=(−a)2−4(1)=a2−4.
The (positive) distance between the roots is ∣α−β∣=a2−4.
Given that this distance is less than 5, we need a2−4<5.
Squaring both sides, a2−4<5⟹a2<9.
Thus −3<a<3.
The required set of values of a is (−3,3), i.e., Option A.