GATE CS 2024 Set 2 | Question 41

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

  1. Question 41Theory of Computationmcq2 marks
    The 5-state NFA (with -transitions) shown accepts which language?
    GATE CS 2024 Set 2 Question 41 figure
    • A.
    • B.
      ✓
    • C.
    • D.

    Answer: B

    Solution

    Answer: (B) Tracing the NFA: from the start there are -moves to a branch counting 0's (loop of two 0's, with accept allowing -like behaviour) and a branch for a 1 followed by pairs of 1's. Combining the accepting paths yields , matching option (B).

More GATE PYQ on Regular Grammar

All GATE CS Theory of Computation PYQ →

Attempt GATE CS 2024 Set 2 in real GATE exam mode

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

Create free account →