Computer Sciences > GATE 2023 > Theory of Computation
Consider the context-free grammar G below:
S -> aSb | X
X -> aX | Xb | a | b
where S and X are non-terminals, and a and b are terminal symbols. The starting non-terminal is S.
Which one of the following statements is CORRECT?
A
The language generated by G is (a+b)*
B
The language generated by G is a*(a+b)b*
C
The language generated by G is a*b*(a+b)
D
The language generated by G is not a regular language

Correct : d

Similar Questions

Consider the pushdown automaton (PDA) P below, which runs on the input alphabet {a,b}, has stack alphabet {⊥, A}, and has three states {s,p,q}, with s being the...
#975 MCQ
Consider the pushdown automaton (PDA) P below, which runs on the input alphabet {a,b}, has stack alphabet {⊥, A}, and has three states {s,p,q}, with s being the...
#975 MCQ
Consider the pushdown automaton (PDA) P below, which runs on the input alphabet {a,b}, has stack alphabet {⊥, A}, and has three states {s,p,q}, with s being the...
#975 MCQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......