GateAI
Regular and Context-Free Languages

GATE CSE 2024 Set 1 · Q23

MSQ1 markMedium

Time

Let L1,L2L_1, L_2 be two regular languages and L3L_3 a language which is not regular. Which of the following statements is/are always TRUE?

Select all that applyOne or more correct

Pick every correct option

Solution

Step-by-step verified solution

Official answer: C) L3 is not regular; D) L1 ∪ L2 is regular

Regular and Context-Free Languages

Let us analyze each statement:

  • (A) is False: L1∩L2‾=ϕL_1 \cap \overline{L_2} = \phi is equivalent to L1⊆L2L_1 \subseteq L_2. For L1=L2L_1 = L_2, we require both L1⊆L2L_1 \subseteq L_2 and L2⊆L1L_2 \subseteq L_1 (i.e., (L1∩L2‾)∪(L2∩L1‾)=ϕ(L_1 \cap \overline{L_2}) \cup (L_2 \cap \overline{L_1}) = \phi). Hence, L1∩L2‾=ϕL_1 \cap \overline{L_2} = \phi alone does not imply L1=L2L_1 = L_2.

  • (B) is False: The union of a regular language and a non-regular language can be regular. For example, choose L1=Σ∗L_1 = \Sigma^* (regular) and L3={anbn∣n≥0}L_3 = \{a^n b^n \mid n \ge 0\} (non-regular). Then L1∪L3=Σ∗L_1 \cup L_3 = \Sigma^*, which is regular.

  • (C) is True: Regular languages are closed under complementation. If L3‾\overline{L_3} were regular, then its complement L3‾‾=L3\overline{\overline{L_3}} = L_3 would also have to be regular, contradicting the fact that L3L_3 is not regular. Therefore, L3‾\overline{L_3} must not be regular.

  • (D) is True: Regular languages are closed under complementation and union. Since L1L_1 and L2L_2 are regular, L1‾\overline{L_1} and L2‾\overline{L_2} are regular, and their union L1‾∪L2‾\overline{L_1} \cup \overline{L_2} is regular.

Thus, statements C and D are always TRUE.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

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

Where do you stand for GATE?

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.

One GATE CSE PYQ every morning

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 in GATE CSE

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 Languages

More from GATE CSE 2024 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2024 Set 1 · Q23 · MSQ

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

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.