GATE CS 2017, set 1 · Question 37 · Theory of Computation · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer
Consider the context-free grammars over the alphabet {a,b,c} given below. S and T are non-terminals.
G₁: S → aSb | T, T → cT | εG₂: S → bSa | T, T → cT | ε
The language L(G₁) ∩ L(G₂) is
- (A) Finite.
- (B) Not finite but regular.
- (C) Context-Free but not regular.
- (D) Recursive but not context-free.
Answer
Answer (B)
Answer from the official GATE CS 2017 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes