Let the mid point of the chords be (x1,y1).
The given equation of circle is x2+(y−1)2=1.
⇒x2+y2−2y=0
⇒xx1+yy1−(y+y1)=x12+y12−2y1
This locus passes through the origin,
⇒0+0−(0+y1)=x12+y12−2y1
⇒−y1=x12+y12−2y1
⇒x12+y12−y1=0
So, the locus is x2+y2−y=0
It intersects with the line x+y=1.
⇒(1−y)2+y2−y=0
⇒1+y2−2y+y2−y=0
⇒2y2−2y−y+1=0
⇒2y(y−1)−(y−1)=0
⇒(2y−1)(y−1)=0
⇒y=1,21
⇒P≡(0,1)andQ(21,21)
⇒PQ=(0−21)2+(1−21)2
⇒PQ=41+41
⇒PQ=21