Context Free Grammars questions

Q39

GATE CS 2023 CSContext Free LanguagesMCQ2 marks−2/3 if wrong
Consider the context-free grammar GG below
<br>S→aSb∣X<br>X→aX∣Xb∣a∣b<br>\begin{align*}<br>S & \to aSb \mid X \\<br>X & \to aX \mid Xb \mid a \mid b<br>\end{align*}
where SS and XX are non-terminals, and aa and bb are terminal symbols. The starting non-terminal is SS.

Which one of the following statements is CORRECT?
Show answer without attempting

Answer: B

0/10 correct0 marks

Related topics in Context Free Languages