GATE CS 2025, set 1 · Question 45 · Theory of Computation · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer
Consider the following two languages over the alphabet {a, b, c}, where m and n are natural numbers.
L₁ = {aᵐ bᵐ cᵐ⁺ⁿ | m, n ≥ 1}L₂ = {aᵐ bⁿ cᵐ⁺ⁿ | m, n ≥ 1}
Which ONE of the following statements is CORRECT?
- (A) Both L₁ and L₂ are context-free languages.
- (B) L₁ is a context-free language but L₂ is not a context-free language.
- (C) L₁ is not a context-free language but L₂ is a context-free language.
- (D) Neither L₁ nor L₂ are context-free languages.
Answer
Answer (C)
Answer from the official GATE CS 2025 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes