GATE CS 2025 Set 2 | Question 52

Theory of Computation › Regular Grammar · MSQ · 2 marks · Answer: A, C

  1. Question 52Theory of Computationmsq2 marks
    Let and for , denote the number of 's in . Which one or more of the following define regular language(s)?
    • A.
      ✓
    • B.
    • C.
      ✓
    • D.

    Answer: A, C

    Solution

    Answer: (A) and (C) - (A) is regular. ✓ - (B) Intersecting with forces to be empty, i.e. , giving — NOT regular. - (C) Track and with a finite automaton of states → regular. ✓ - (D) requires counting and is NOT regular.

More GATE PYQ on Regular Grammar

All GATE CS Theory of Computation PYQ →

Attempt GATE CS 2025 Set 2 in real GATE exam mode

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

Create free account →