now how to calculate frequency in these type of questions take a arbitrary value off q2,q1,q0 and check after how many clock pulse it is repeated as in this question 101 is repeated after 2 clock pulse which is 010,101
now the output frequency will be ((input frequency)/clock cycle after value gets repeated) ...............in this case
it will be 100/2 50Khz