GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2026 set1

GATE 2026 set1 · CS · MSQ · 2 marks · Theory of Computation › Context Free Languages

GATE 2026 set1 Computer Science and Information Technology question: Consider the following context-free grammar G. S abaABAbba A aaBBAb bBabaa B aBb ab In…

Consider the following context-free grammar .

In the above grammar, is the start symbol, and are terminal symbols, and and are non-terminal symbols.

Let be the language generated by the grammar . For a string , let be the number of ’s in and be the number of ’s in .

Which of the following statements is/are true?

  1. (A)

    There is a string such that

  2. (B)

    For every string ,

  3. (C)

    There is a string such that

  4. (D)

    For every string ,

Show answer

Official answer: B,D

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion