Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2023
Questions

Q29

MCQ2 marks, −0.67Theory of computation

Consider the context-free grammar GG below

S→aSb∣XX→aX∣Xb∣a∣b,\begin{array}{l} S \rightarrow a S b \mid X \\ X \rightarrow a X \mid X b \mid a \mid b, \end{array}

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?\text{CORRECT}?

Sign in to save attempts.

The solution is hidden while you attempt this question. It opens once you check or show the answer.