GATE CS 2013 · Question 32 · Theory of Computation · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Consider the following languages.
L₁ = {0ᵖ 1^q 0ʳ | p, q, r ≥ 0}L₂ = {0ᵖ 1^q 0ʳ | p, q, r ≥ 0, p ≠ r}
Which one of the following statements is FALSE ?

  1. (A) L₂ is context-free.
  2. (B) L₁ ∩ L₂ is context-free.
  3. (C) Complement of L₂ is recursive.
  4. (D) Complement of L₁ is context-free but not regular.
Answer

Answer (D)

Answer from the official GATE CS 2013 answer key.

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