If 1-i is a root of the equation x2-ax+b=0, then b=
-2
-1
1
2
1-i is a root of the equation so x=1-i
⇒(x-1)=-i⇒(x-1)2=(-i)2⇒x2-2x+2=0
By comparison, a=2, b=2.