GATE CS 2024 Set 2 | Question 52

Theory of Computation › Context Free Grammar · MSQ · 2 marks · Answer: B, C

  1. Question 52Theory of Computationmsq2 marks
    : , , . For , with the counts of , which statements is/are TRUE?
    • A.
    • B.
      ✓
    • C.
      ✓
    • D.

    Answer: B, C

    Solution

    Answer: (B) and (C) Each use of adds one and one ; adds an ; and each eventually becomes a . Counting: every comes with the rule, and the number of 's is always one more than the number of 's -> (C). Since each has a matching (plus possibly extra 's), , and relating to gives (B). (A) fails when no rule is used and (D) is false in general.

More GATE PYQ on Context Free 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 →