GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2023

GATE 2023 · CS · MCQ · 2 marks · Theory of Computation › Context Free Languages

GATE 2023 Computer Science and Information Technology question: Consider the context-free grammar G below S aSb X X aX Xb a b \ , where S and X are…

Consider the context-free grammar below


where and are non-terminals, and and are terminal symbols. The starting non-terminal is .

Which one of the following statements is CORRECT?

  1. (A)

    The language generated by is

  2. (B)

    The language generated by is

  3. (C)

    The language generated by is

  4. (D)

    The language generated by is not a regular language

Show answer

Official answer: B

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion