The correct option is D (0,π)
The equation has real roots if
cos2p−4(cosp−1)sinp≥0
Or cos2p−4cosp.sinp+4sinp≥0
Or (cosp−2sinp)2−4sin2p+4sinp≥0...(1)
(cosp−2sinp)2+4sinp(1−sinp)≥0
Or (cosp−2sinp)2≥0.1,1−sinp≥0 for all values of p and for pϵ[0,π]
sinp≥0 so that the discriminant is non-negative.
The correct answer is: (0,π).