Question
Which of the following statements is/are CORRECT?
Official answer and solution
- Official answer
- A, C and D
- From
- Official GATE 2023 answer key
Solution
Check closure properties under intersection for Chomsky hierarchy language classes.
- Regular Languages: Closed under intersection (using product construction on DFAs). Thus, (A) is CORRECT.
- Context-Free Languages: NOT closed under intersection (for example, , which is not context-free). Thus, (B) is INCORRECT.
- Recursive (Decidable) Languages: Closed under intersection (simulate both deciders sequentially; accept if both accept). Thus, (C) is CORRECT.
- Recursively Enumerable (Turing-Recognizable) Languages: Closed under intersection (interleave simulation of both Turing machines; accept if both halt and accept). Thus, (D) is CORRECT.
Final answer
Options (A, C, D)
Common trap
Assuming context-free languages are closed under intersection; they are closed under intersection with regular languages, but not with other CFLs.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2023 Computer Science and Information Technology (CS)
- Question
- 24 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.