Question
Which of the following statements is/are TRUE?
Official answer and solution
- Official answer
- B, C and D
- From
- Official GATE 2022 answer key
Solution
Evaluate each language-theoretic statement using standard closure and decidability theorems.
Evaluating each statement:
- (A) FALSE: The set of all subsets of is uncountably infinite, whereas the set of recursive languages is countably infinite. Since is recursively enumerable (in fact, regular), it has uncountably many subsets that are not even recursively enumerable, let alone recursive.
- (B) TRUE: By Post's theorem, if a language and its complement are both recursively enumerable, then is recursive (decidable).
- (C) TRUE: Every context-free language is decidable (recursive). Since recursive languages are closed under complementation, the complement of any context-free language is recursive.
- (D) TRUE: The class of regular languages is closed under intersection, so is regular. Every regular language is a deterministic context-free language (DCFL).
Final answer
Options (B), (C), (D)
Common trap
Believing subsets inherit decidability from their superset, which is false.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2022 Computer Science and Information Technology (CS)
- 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.