GATE CS 2026, set 2 · Question 48 · Theory of Computation · Multiple select (MSQ) · 2 marks · no negative marks

Let Σ = {a, b, c, d} and let L = {aⁱ bʲ cᵏ d^ℓ | i, j, k, ℓ ≥ 0}.
Which of the following constraints ensure(s) that the language L is context-free?

  1. (A) i + k = j + ℓ
  2. (B) i = k and j = ℓ
  3. (C) i = ℓ and j = k
  4. (D) i + j = k + ℓ
Answer

Answer (A), (C), (D)

Answer from the official GATE CS 2026 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes