GATE 2026 set1 · CS · MSQ · 1 mark · Theory of Computation › Context Free Languages
GATE 2026 set1 Computer Science and Information Technology question: Consider the following grammar where S is the start symbol, and a and b are terminal…
Consider the following grammar where S is the start symbol, and a and b are terminal symbols.
S→aSbS∣bS∣ϵ
Which of the following statements is/are true?
- (A)
- (B)
The string abb has two distinct derivations in this grammar
- (C)
The string abab has only one rightmost derivation
- (D)
The language generated by the grammar is undecidable
Show answer
Official answer: A,B,C
Practise this question with exam-style marking