GATE CS 2017, set 1 · Question 38 · Theory of Computation · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer
Consider the following languages over the alphabet Σ = {a, b, c}.
Let L₁ = { aⁿ bⁿ cᵐ | m, n ≥ 0 } and L₂ = { aᵐ bⁿ cⁿ | m, n ≥ 0 }.
Which of the following are context-free languages?
I. L₁ ∪ L₂
II. L₁ ∩ L₂
- (A) I only
- (B) II only
- (C) I and II
- (D) Neither I nor II
Answer
Answer (A)
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