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 6–10 of 14
Let L be a language and be its complement. Which of the following is NOT a viable possibility?
Answer: (C)
Suppose L and are both r.e. Then we can run their two recognizers at the same time, and this decides L. So L is recursive. This means the case "both r.e. but not recursive" cannot happen. The other three cases can happen.
Answer: Both L and are r.e. but not recursive
Answer: Both L and are r.e. but not recursive
Let L1 be a recursive language. Let L2 and L3 be languages that are recursively enumerable but not recursive. Which of the following statements is not necessarily true?
Answer: (B)
Here is recursive, so is also recursive. Also is RE, since every recursive language is RE. Go through each statement:
- (A) . This is RE recursive, and RE languages are closed under intersection, so it is RE. Always true.
- (C) and (D): and are the union and intersection of two RE languages, so both are RE. Always true.
- (B) . Since is RE but not recursive, is not RE (if both were RE, would be recursive). So the result need not be RE. For example, take , which is recursive. Then , which is not RE.
So (B) is the statement that is not necessarily true.
Answer: (B)
- (A) . This is RE recursive, and RE languages are closed under intersection, so it is RE. Always true.
- (C) and (D): and are the union and intersection of two RE languages, so both are RE. Always true.
- (B) . Since is RE but not recursive, is not RE (if both were RE, would be recursive). So the result need not be RE. For example, take , which is recursive. Then , which is not RE.
So (B) is the statement that is not necessarily true.
Answer: (B)
If L and are recursively enumerable then L is
Answer: (D)
Take an input w and run the recognizers for L and side by side. One and only one of them accepts, so the procedure always stops with the correct result L is recursive.
Answer: recursive
Answer: recursive
Let L1 be regular language, L2 be a deterministic context-free language and L3 a recursively enumerable, but not recursive, language. Which one of the following statements is false?
Answer: (B)
is regular and is a DCFL, so both are recursive; is recursively enumerable (RE) but not recursive.
(A) True: the intersection of a DCFL with a regular language is a DCFL.
(B) False: the intersection of a recursive language and an RE language is RE, but it need not be recursive. For example, if , then , which is not recursive.
(C) True: is regular, so it is a CFL, and every DCFL is a CFL. CFLs are closed under union.
(D) True: , and are all RE, and RE languages are closed under intersection.
Answer: (B)
(A) True: the intersection of a DCFL with a regular language is a DCFL.
(B) False: the intersection of a recursive language and an RE language is RE, but it need not be recursive. For example, if , then , which is not recursive.
(C) True: is regular, so it is a CFL, and every DCFL is a CFL. CFLs are closed under union.
(D) True: , and are all RE, and RE languages are closed under intersection.
Answer: (B)
For , let d(s) denote the decimal value of s (e.g. d(101)=5).
Let L={s (0+1)*| d(s) mod 5=2 and d(s) mod 74}
Which one of the following statements is true?
Let L={s (0+1)*| d(s) mod 5=2 and d(s) mod 74}
Which one of the following statements is true?
Answer: (D)
Reading a new bit changes the value of the string to . So a DFA that keeps only the remainder modulo can move from state to state on bit .
The language is regular. Its DFA has states , start state , and the only final state is .
In the same way, is also regular. Its DFA has states with start state . All of them are final states except .
So , which is of the given problem, is also regular, because regular languages are closed under intersection (a product DFA with states accepts it).
A regular language is also context-free and recursive, so (A), (B) and (C) are false.
Answer: (D)
The language is regular. Its DFA has states , start state , and the only final state is .
In the same way, is also regular. Its DFA has states with start state . All of them are final states except .
So , which is of the given problem, is also regular, because regular languages are closed under intersection (a product DFA with states accepts it).
A regular language is also context-free and recursive, so (A), (B) and (C) are false.
Answer: (D)
Keep practising