Let L1, L2 be two regular languages and L3 a language which is not regular. Which of the following statements is/are always TRUE?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2024 Set 1 · Q23
Time
Select all that applyOne or more correct
Solution
Official answer: C) L3 is not regular; D) L1 ∪ L2 is regular
Regular and Context-Free LanguagesLet us analyze each statement:
(A) is False: is equivalent to . For , we require both and (i.e., ). Hence, alone does not imply .
(B) is False: The union of a regular language and a non-regular language can be regular. For example, choose (regular) and (non-regular). Then , which is regular.
(C) is True: Regular languages are closed under complementation. If were regular, then its complement would also have to be regular, contradicting the fact that is not regular. Therefore, must not be regular.
(D) is True: Regular languages are closed under complementation and union. Since and are regular, and are regular, and their union is regular.
Thus, statements C and D are always TRUE.
Try the question first, then check your work.
Examiner trap
Recall the closure properties of regular languages under complement and union, and consider counterexamples involving the universal language .
This Regular and Context-Free Languages previous year question is Q23 of the GATE CSE 2024 Set 1 paper. Find more GATE CSE PYQs on Regular and Context-Free Languages in Theory of Computation, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Regular and Context-Free Languages PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Regular and Context-Free Languages has 21 GATE CSE PYQs across 13 papers from 2011 to 2026. 3 of them are 1-mark MSQs like this one, and it is the only one in GATE CSE 2024 Set 1.
How GATE tests Regular and Context-Free LanguagesIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.