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

Let L₁, L₂ be any two context-free languages and R be any regular language. Then which of the following is/are CORRECT?
I. L₁ ∪ L₂ is context-free.
II. L̅₁̅ is context-free.
III. L₁ - R is context-free.
IV. L₁ ∩ L₂ is context-free.

  1. (A) I, II and IV only
  2. (B) I and III only
  3. (C) II and IV only
  4. (D) I only
Answer

Answer (B)

Answer from the official GATE CS 2017 answer key.

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