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

  1. (A) Finite.
  2. (B) Not finite but regular.
  3. (C) Context-Free but not regular.
  4. (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