GATE CS 2020 · Question 18 · Theory of Computation · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

Consider the following statements.
I. If L₁ ∪ L₂ is regular, then both L₁ and L₂ must be regular.
II. The class of regular languages is closed under infinite union.
Which of the above statements is/are TRUE?

  1. (A) I only
  2. (B) II only
  3. (C) Both I and II
  4. (D) Neither I nor II
Answer

Answer (D)

Answer from the official GATE CS 2020 answer key.

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