The correct option is
D 4In the given equation x2+6x+k=0
For the roots to be rational the condition is given by,
The value in the Discriminant of the equation should be a perfect square of a number,
So,We know that,
Discriminant,D=√b2−4ac where, in the given equation
a=1,b=6 and c=k
On comparing with the general equation ax2+bx+c=0
Now,D=√62−4×1×k=√36−4k
Now, the value of term 36−4k should be a perfect square.
At k=0,36−4k=36−0=36 is a perfect square
At k=5,36−4k=36−20=16 is a perfect square
At k=8,36−4k=36−32=4 is a perfect square
At k=9,36−4k=36−36=0 is a perfect square
∴ there are four non-negative integral values of k for which roots are rational.
∴k=0,5,8,9