The correct option is D −4
Consider the quadratic equation x2+k(2x+k+1)+4=0
It can be rewritten as x2+2kx+k2+k+4=0
Now, for real and equal roots, discriminant is zero.
∴D=0
⇒(2k)2−4×1×(k2+k+4)=0
⇒4k2−4(k2+k+4)=0
⇒4k2−4k2−4k−16=0
⇒−4k−16=0
⇒k=−4
Hence, the correct answer is option (4).