The correct option is D 4
Given ,
x−2 is a factor of p(x)
⇒ p(2) = 0
⇒ 4−2b+2=0
⇒ b=3
∴ p(x)=x2−3x+2
Splitting the middle term , we have
x2−3x+2=x2−2x−x+2
⇒ x(x−2)−1(x−2)
⇒ x2−3x+2=(x−2)(x−1)
Given, x−2 is already a factor
⇒ x−a is equal to x−1
⇒ a=1
∴ a+b=1+3=4