GATE CS 2021, set 1 · Question 11 · Theory of Computation · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

Suppose that L₁ is a regular language and L₂ is a context-free language. Which one of the following languages is NOT necessarily context-free?

  1. (A) L₁ ∩ L₂
  2. (B) L₁ · L₂
  3. (C) L₁ - L₂
  4. (D) L₁ ∪ L₂
Answer

Answer (C)

Answer from the official GATE CS 2021 answer key.

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