GATE CS 2014, set 1 · Question 26 · Theory of Computation · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

Consider the finite automaton in the following figure.
What is the set of reachable states for the input string 0011?

Finite automaton with four states q0, q1, q2, q3 arranged left to right. An unlabelled incoming arrow marks q0 as the start state. q3 is drawn with a double circle (accepting state). Transitions: q0 has a self-loop labelled 0,1; q0 to q1 on 1; q1 to q2 on 0,1; q2 has a self-loop labelled 1; q2 to q3 on 0,1. q3 has no outgoing transitions.
  1. (A) {q₀, q₁, q₂}
  2. (B) {q₀, q₁}
  3. (C) {q₀, q₁, q₂, q₃}
  4. (D) {q₃}
Answer

Answer (A)

Answer from the official GATE CS 2014 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes