vlet quadratic eqn be ax2+bx+c=0 and roots be d and e,then roots of ax2+bx+c are d2 and e2 now there are four cases
d2=d,e2=e, d2=e, e2=d
d(d-1)=0 hence we get d=0 or d=1
e(e-1)=0 hence we get e=0 and e=1
then eqn satisfying d2=e are 0 and 1 for d and e similarly for e2=d we get 0 and 1 as answer
hence pairs possible for roots are (0,0) (0,1) (1,0) (1,1)
hence answer is 4