Question

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?

Choose every correct option
Official answer and solution
Official answer
C and D
From
Official GATE 2024 answer key

Solution

Apply set theory and the closure properties of regular languages under union and complementation.

  • (A) is FALSE: L1∩L2‾=∅L_1 \cap \overline{L_2} = \emptyset is equivalent to L1⊆L2L_1 \subseteq L_2, not L1=L2L_1 = L_2 (for example, L1=∅L_1 = \emptyset and L2=Σ∗L_2 = \Sigma^* satisfy L1∩L2‾=∅L_1 \cap \overline{L_2} = \emptyset, but L1≠L2L_1 \neq L_2).
  • (B) is FALSE: If L1=Σ∗L_1 = \Sigma^* (which is 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 L3‾‾=L3\overline{\overline{L_3}} = L_3 would also be regular, contradicting that L3L_3 is not regular.
  • (D) is TRUE: Since L1L_1 and L2L_2 are regular and regular languages are closed under complementation and union, L1‾∪L2‾\overline{L_1} \cup \overline{L_2} is always regular.
Final answer

Options (C), (D)

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2024 Computer Science and Information Technology - Set 1 (CS1)
Question
23 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.