Skip to content
GATEiit

GATE CSE 2020 Q18: Regularity of a union and closure under infinite union

Question

Consider the following statements.

I. If L1∪L2L_1 \cup L_2 is regular, then both L1L_1 and L2L_2 must be regular.

II. The class of regular languages is closed under infinite union.

Which of the above statements is/are TRUE?

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 1/3 mark in GATE.
Show answer and explanation

Answer: D (official GATE 2020 final answer key)

Concept used: Closure properties hold for finite unions only; a regular union says nothing about its parts.

First step: Take L1={anbn}L_1 = \{a^n b^n\} and L2=Σ∗L_2 = \Sigma^* for I; for II, write {anbn}\{a^n b^n\} as an infinite union of singleton languages.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2020 CS question paper and final answer key, organised by IIT Delhi. Question paper · Answer key