Consider the following context-free grammar , where , , and are the variables (non-terminals), and are the terminal symbols, is the start variable, and the rules of are described as:
Which ONE of the languages is accepted by ?
- (A)
- (B)
- (C)
- (D)
Consider the following context-free grammar , where , , and are the variables (non-terminals), and are the terminal symbols, is the start variable, and the rules of are described as:
Which ONE of the languages is accepted by ?
Official answer: ASource: Official answer key, GATE 2025 CS1 (IIT Roorkee)
From the GATE 2025 CS1 paper. Every question of this paper · Download the full paper · All 9 CFG & PDA questions, with notes