GATE / CS ARCHIVE

GATE CSE 2002 / QUESTION 2.14

Complement closure and overlapping answer choices

Theory of Computation · Closure Properties & Language Hierarchy · Full GATE CSE 2002 paper

GATE 2002, Q2.14 2 marks · MCQ
Report issue

Closure Properties & Language Hierarchy

Question 2.14, GATE 2002: Which statement is true?
(A) The complement of a recursive language is recursive.
(B) The complement of a recursively enumerable language is recursively enumerable.
(C) The complement of a recursive language is either recursive or recursively enumerable.
(D) The complement of a context-free language is context-free.
Tap to enlarge
Your answer
Answer & solution

Answer: A; C is also true with inclusive or (no official key was published)

Step 1: Separate mathematical closure from multiple-choice wording.

Step 2: A recursive decider halts on every input; reversing its output gives another total decider. A recognizer for an arbitrary RE language need not halt on nonmembers, so merely reversing its states is not a complement recognizer. Option C nevertheless remains true as a weak inclusive disjunction because its first alternative already holds; it is not made false simply by being less informative than A.

Conclusion: A decider always halts, so swapping its accept and reject answers decides the complement. Thus A is true. Recursive languages are also recursively enumerable, making C’s printed claim that the complement is either recursive or recursively enumerable true as an inclusive disjunction as well. If C intends recursive or merely-RE-but-not-recursive, its imprecise wording is hiding that distinction. General RE languages are not closed under complement (otherwise dovetailing both recognizers decides every RE language), and CFLs are not closed under complement. A is the strongest precise statement, but the literal single-choice options overlap.

Original paper, page 5