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

Which of the regular expressions given below represent the following DFA?
I) 0^*1(1+00^*1)^*
II) 0^*1^*1+11^*0^*1
III) (0+1)^*1

A DFA with two states. The left state is the start state (an incoming arrow from the left) and is non-accepting; it has a self-loop labelled 0. The right state is accepting (double circle) and has a self-loop labelled 1. There is a transition labelled 1 from the left state to the right state, and a transition labelled 0 from the right state back to the left state.
  1. (A) I and II only
  2. (B) I and III only
  3. (C) II and III only
  4. (D) I, II, and III
Answer

Answer (B)

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