Question

Let L1L_1 and L2L_2 be two languages over a finite alphabet, such that L1∩L2L_1 \cap L_2 and L2L_2 are regular languages.

Which of the following statements is/are always true?

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

Solution

Use the inclusion of regular languages in context-free languages and construct a counterexample with L2=∅L_2 = \emptyset for L1L_1.

  • Option (C) is always true: Since L2L_2 is given to be a regular language, and every regular language is also context-free (REG⊊CFL\text{REG} \subsetneq \text{CFL}), L2L_2 is always context-free.
  • Options (A), (B), and (D) are false: Take L2=∅L_2 = \emptyset (regular) and let L1L_1 be any non-context-free (or undecidable) language. Then L1∩L2=∅L_1 \cap L_2 = \emptyset is regular, but L1=L1∪L2L_1 = L_1 \cup L_2 is neither regular nor context-free.
Final answer

Option (C)

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

Source

Paper
GATE 2026 Computer Science and Information Technology - Session 1 (CS1)
Question
51 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.