Home › GATE CS › PYQs › Theory of Computation › Regular & Context-Free Languages, Pumping Lemma

Regular & Context-Free Languages, Pumping Lemma — GATE CS Previous Year Questions

Practise GATE CS previous year questions on Regular & Context-Free Languages, Pumping Lemma in Theory of Computation (TOC). Filter by year, marks and question type.

Public question previews

  • Let L1 and L2 be two languages over a finite alphabet, such that L1 ∩ L2 and L2 are regular languages. Which of the following statements is/are always true? (2026 · 2 marks · MSQ)
  • Let Σ = {a, b, c, d} and let L = {a^i b^j c^k d^ℓ | i,j, k, ℓ ≥ 0}. Which of the following constraints ensure(s) that the language L is context-free? (2026 · 2 marks · MSQ)
  • Consider the following two languages over the alphabet {a, b}: L1 = { αβα | α ∈ {a, b}+ AND β ∈ {a, b}+ } L2 = { αβα | α ∈ {a}+ AND β ∈ {a, b}+ } Which ONE of the following statements is CORRECT? (2025 · 2 marks · MCQ)
  • Consider the following two languages over the alphabet {a, b, c}, where m and n are natural numbers. L1 = { a^m b^m c^m+n | m, n >= 1 } L2 = { a^m b^n c^m+n | m, n >= 1 } Which ONE of the following statements is CORRECT? (2025 · 2 marks · MCQ)
  • Let L1, L2 be two regular languages and L3 a language which is not regular. Which of the following statements is/are always TRUE? (2024 · 1 mark · MSQ)