Recursive Language · Theory of Computation
14 questions · asked in 13 of 27 years (2000–2026)
MCQ 11 · MSQ 31-mark 12 · 2-mark 2
2000Questions per year2026
Questions 1–5 of 14
Consider the two lists List I and List II given below:
For matching of items in List I with those in List II, which of the following option(s) is/are CORRECT?
For matching of items in List I with those in List II, which of the following option(s) is/are CORRECT?
One or more options are correct.
Answer: (B), (C)
Recall the closure properties of each class.
- Context-free languages: closed under union, not closed under complementation, not closed under intersection. So (i) can take (a) or (b), but not (c).
- Recursive languages: closed under union, complementation and intersection. So (ii) can take (a) or (c), but not (b).
- Regular languages: closed under union, complementation and intersection. So (iii) can take (a) or (c), but not (b).
Property (b) must go to a class that is not closed under complementation. Only context-free languages are, so (i)-(b). Then (a) and (c) are true for both recursive and regular languages, so they can be given out in either order. This gives two correct matchings:
- (i)-(b), (ii)-(a), (iii)-(c), which is option (B).
- (i)-(b), (ii)-(c), (iii)-(a), which is option (C).
Option (A) puts (b) with recursive languages, and option (D) puts (b) with regular languages. Both classes are closed under complementation, so these two are wrong.
Answer: (B), (C)
- Context-free languages: closed under union, not closed under complementation, not closed under intersection. So (i) can take (a) or (b), but not (c).
- Recursive languages: closed under union, complementation and intersection. So (ii) can take (a) or (c), but not (b).
- Regular languages: closed under union, complementation and intersection. So (iii) can take (a) or (c), but not (b).
Property (b) must go to a class that is not closed under complementation. Only context-free languages are, so (i)-(b). Then (a) and (c) are true for both recursive and regular languages, so they can be given out in either order. This gives two correct matchings:
- (i)-(b), (ii)-(a), (iii)-(c), which is option (B).
- (i)-(b), (ii)-(c), (iii)-(a), which is option (C).
Option (A) puts (b) with recursive languages, and option (D) puts (b) with regular languages. Both classes are closed under complementation, so these two are wrong.
Answer: (B), (C)
Which of the following statements is/are TRUE?
One or more options are correct.
Answer: (B), (C), (D)
Check each statement:
- (A) A subset of an RE language does not have to be recursive. is regular, so it is recursive and RE. The halting language is a subset of but it is not recursive. FALSE.
- (B) Suppose and are both RE. Run both recognizers at the same time. Every string is in or in , so one of them must accept. If it is the machine for , accept; if it is the machine for , reject. So is recursive. TRUE.
- (C) Every CFL is recursive, and recursive languages are closed under complement. TRUE.
- (D) is regular, and every regular language is deterministic context-free. TRUE.
Answer: (B), (C), (D)
- (A) A subset of an RE language does not have to be recursive. is regular, so it is recursive and RE. The halting language is a subset of but it is not recursive. FALSE.
- (B) Suppose and are both RE. Run both recognizers at the same time. Every string is in or in , so one of them must accept. If it is the machine for , accept; if it is the machine for , reject. So is recursive. TRUE.
- (C) Every CFL is recursive, and recursive languages are closed under complement. TRUE.
- (D) is regular, and every regular language is deterministic context-free. TRUE.
Answer: (B), (C), (D)
Let < M > denote an encoding of an automaton M. Suppose that . Which of the following languages is/are NOT recursive?
One or more options are correct.
Answer: (D)
A language is recursive when some Turing machine decides it. Go through each case:
- (A) DFA emptiness: see if any final state can be reached from the start state this is decidable.
- (B) DFA universality: swap the final and non-final states to get the complement DFA, and test it for emptiness this is decidable.
- (C) PDA emptiness: change the PDA into a CFG and see if S generates any string this is decidable.
- (D) PDA universality (): it is undecidable, so this language is not recursive. The reason is a reduction from Turing machine acceptance. For a Turing machine and input , the strings that are not an accepting computation history of on form a context-free language, because a PDA can check for a wrong step in the sequence of configurations. This language is all of exactly when does not accept . A decider for PDA universality would then decide Turing machine acceptance, which is impossible.
Answer: (D)
- (A) DFA emptiness: see if any final state can be reached from the start state this is decidable.
- (B) DFA universality: swap the final and non-final states to get the complement DFA, and test it for emptiness this is decidable.
- (C) PDA emptiness: change the PDA into a CFG and see if S generates any string this is decidable.
- (D) PDA universality (): it is undecidable, so this language is not recursive. The reason is a reduction from Turing machine acceptance. For a Turing machine and input , the strings that are not an accepting computation history of on form a context-free language, because a PDA can check for a wrong step in the sequence of configurations. This language is all of exactly when does not accept . A decider for PDA universality would then decide Turing machine acceptance, which is impossible.
Answer: (D)
The set of all recursively enumerable languages is
Answer: (B)
RE languages are closed under intersection. To see this, run both TMs and accept only when both of them accept. RE languages are not closed under complement. They are a superset of the recursive languages, not a subset. They are also countable, because all TMs can be listed.
Answer: closed under intersection
Answer: closed under intersection
Let X be a recursive language and Y be a recursively enumerable but not recursive language. Let W and Z be two languages such that reduces to W, and Z reduces to (reduction means the standard many-one-reduction). Which one of the following statements is TRUE?
Answer: (C)
Let us check each statement:
- Y is RE but not recursive, so is not RE. reduces to W. If W were RE, then would be RE too. So W cannot be RE.
- X is recursive, so is also recursive. Z reduces to , so Z is recursive.
Answer: W is not recursively enumerable and Z is recursive
- Y is RE but not recursive, so is not RE. reduces to W. If W were RE, then would be RE too. So W cannot be RE.
- X is recursive, so is also recursive. Z reduces to , so Z is recursive.
Answer: W is not recursively enumerable and Z is recursive
Keep practising