All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · June 2024 Re-Exam

If L₁ and L₂ are context-free languages, which one of the following is true about L₁ ∩ L₂?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. L₁ ∩ L₂ is recursively enumerable

Explanation

CFLs are not closed under intersection (aⁿbⁿcᵐ ∩ aᵐbⁿcⁿ = aⁿbⁿcⁿ), so A and B are not guaranteed. The intersection is always decidable, hence recursively enumerable, which is the keyed answer. (Strictly it is also context-sensitive, since CSLs are closed under intersection; the key takes the safest class, RE.)

More Theory of Computation and Compilers questions