Question
Let be two regular languages and a language which is not regular. Which of the following statements is/are always TRUE?
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: is equivalent to , not (for example, and satisfy , but ).
- (B) is FALSE: If (which is regular), then , which is regular.
- (C) is TRUE: Regular languages are closed under complementation. If were regular, then would also be regular, contradicting that is not regular.
- (D) is TRUE: Since and are regular and regular languages are closed under complementation and union, 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.