GATE CS 2021 Set 1 | Question 48

Theory of Computation › Regular Grammar · MCQ · 2 marks · Answer: D

  1. Question 48Theory of Computationmcq2 marks
    Consider the following language.
    Which one of the following deterministic finite automata accepts ? (See the figure for options (A)–(D).)
    GATE CS 2021 Set 1 Question 48 figure
    • A.
      (A)
    • B.
      (B)
    • C.
      (C)
    • D.
      (D)
      ✓

    Answer: D

    Solution

    A correct DFA for strings ending in 011 needs the accepting state reached only after reading 0,1,1 in order, with proper back-transitions on mismatches. Only option (D) has the correct transitions and single accepting state for this pattern.

More GATE PYQ on Regular Grammar

All GATE CS Theory of Computation PYQ →

Attempt GATE CS 2021 Set 1 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →