Which of the following statements is/are TRUE?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2022 · Q23
Time
Select all that applyOne or more correct
Solution
Official answer: B) If a language L and its complement L are both recursively enumerable, then L must be recursive.; C) Complement of a context-free language must be recursive.; D) If L1 and L2 are regular, then L1 ∩ L2 must be deterministic context-free.
Turing Machines and UndecidabilityLet us analyze each statement:
(A) False: Every language is a subset of , and is regular (and hence recursively enumerable). Since there are uncountably many subsets of but only countably many Turing machines (and thus countably many recursive/RE languages), not every subset of an RE language is recursive (in fact, some are not even RE).
(B) True: By Post's Theorem, a language is recursive (decidable) if and only if both and its complement are recursively enumerable (Turing-recognizable).
(C) True: Every context-free language (CFL) is recursive. Because the class of recursive languages is closed under complementation, the complement of any CFL is always recursive (even though it may not be context-free).
(D) True: Regular languages are closed under intersection, so if and are regular, is regular. Since every regular language is a deterministic context-free language (DCFL), is deterministic context-free.
Thus, statements B, C, and D are TRUE.
Try the question first, then check your work.
Examiner trap
Recall Post's theorem, closure properties of recursive and regular languages, and the Chomsky hierarchy inclusion relations.
This Turing Machines and Undecidability previous year question is Q23 of the GATE CSE 2022 paper. Find more GATE CSE PYQs on Turing Machines and Undecidability in Theory of Computation, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Turing Machines and Undecidability PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Turing Machines and Undecidability has 30 GATE CSE PYQs across 20 papers from 2012 to 2026. 3 of them are 1-mark MSQs like this one, and GATE CSE 2022 has 2.
How GATE tests Turing Machines and UndecidabilityIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.