Computer Science EngineeringHardISRO SC

A minimal complete DFA reading binary numbers most-significant bit first accepts exactly those divisible by 7 (the empty string counts as 0). Its number of states is

  1. A. 8
  2. B. 6
  3. C. 9
  4. D. 7

Correct answer: D. 7

The state is the value mod 7; all 7 remainders are reachable and distinguishable, so 7 states.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic