GATE CS 2023 | Question 39
Theory of Computation › Context Free Grammar · MCQ · 2 marks · Answer: B
- Question 39Theory of Computationmcq2 marksConsider : , . Which statement is CORRECT?
- A.
- B.✓
- C.
- D.is not a regular language
Answer: B
Solution
Answer: (B) generates (any number of leading 's, one middle symbol, any number of trailing 's — at least one symbol). The rule wraps matched 's and 's around, but these are absorbed into the form. So , which is regular. - A.
More GATE PYQ on Context Free Grammar
All GATE CS Theory of Computation PYQ →Attempt GATE CS 2023 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →