GATE CS 2023 · Question 14 · Theory of Computation · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

Consider the Deterministic Finite-state Automaton (DFA) A shown below. The DFA runs on the alphabet {0, 1}, and has the set of states {s, p, q, r}, with s being the start state and p being the only final state.
Which one of the following regular expressions correctly describes the language accepted by A?

DFA with four states s, p, q, r. s is the start state (incoming arrow); p is the only final state (double circle). Transitions: s on 1 goes to p; s on 0 goes to r; p on 0 loops to p; p on 1 goes to q; q on 1 goes back to p; q on 0 goes to r; r on 0,1 loops to r (dead state).
  1. (A) 1(0^*11)^*
  2. (B) 0(0+1)^*
  3. (C) 1(0+11)^*
  4. (D) 1(110^*)^*
Answer

Answer (C)

Answer from the official GATE CS 2023 answer key.

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