All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · December 2022 (Shift 1)

Which of the following finite automata recognize L = {a, b}*? (Transition tables A–D are shown; in each, the start state q0 is accepting.)

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. A, B, C and D

Explanation

In every machine the start state is accepting and has a transition back to itself (or to accepting states) on both a and b, so every string over {a, b} can be read while staying in an accepting state. States that cannot be reached do not change the language, so all four accept {a, b}*.

More Theory of Computation and Compilers questions