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₂

  1. (A) I only
  2. (B) II only
  3. (C) I and II
  4. (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