The correct option is C 0,−1
Let x=1−p
Hence, f(x)=x2+px+1−p
Now, f(1−p)=0 ... since it is a factor.
⇒(1−p)2+p(1−p)+1−p=0
⇒(1−p)[1−p+p+1]=0
⇒2(1−p)=0
⇒p=1
Now the second expression becomes
x2+x+1=1
⇒x2+x=0
⇒x(x+1)=0
⇒x=0 and x=−1
Hence, the required roots are 0,−1.