Undecidability
Undecidability MCQs (Theory of Computation) β GATE Level
Q1.
Which of the following problems is undecidable?
A) Checking if a DFA accepts a given string
B) Checking if a Turing machine halts on all inputs
C) Checking if a CFG is ambiguous
D) Checking if two DFAs accept the same language
β
Answer: B
Solution:
The βhalts on all inputsβ (universal halting) is equivalent to the Halting Problem β undecidable. Others (like DFA equivalence) are decidable.
Q2.
The Halting problem for Turing Machines is:
A) Decidable
B) Semi-decidable
C) Regular
D) Recursive
β
Answer: B
Solution:
Halting is recursively enumerable (semi-decidable) β we can simulate and halt if it halts, but not decide otherwise.
Q3.
Which of the following is not recursively enumerable?
A) Complement of the Halting problem
B) Halting problem
C) Accepting problem of TM
D) Membership problem for TM
β
Answer: A
Solution:
Complement of an RE language is not necessarily RE β Halting complement is one such case.
Q4.
Which of the following is decidable?
A) βDoes TM M accept string w?β
B) βDoes TM M halt on input w?β
C) βIs L(M) empty?β
D) βIs DFA minimal?β
β
Answer: D
Solution:
DFA minimization and equivalence are decidable; all TM-based questions are undecidable.
Q5.
The βHalting Problemβ proves that:
A) Every problem can be solved by some TM
B) There exist well-defined problems that no TM can decide
C) TMs are not powerful enough
D) Computations are infinite
β
Answer: B
Solution:
It establishes the limits of computation β some problems (like halting) are unsolvable.
Q6.
If L is recursively enumerable and LΜ
is recursively enumerable, then L is:
A) Regular
B) Recursive
C) Non-regular
D) Context-free
β
Answer: B
Solution:
When both a language and its complement are RE, the language is recursive (decidable).
Q7.
The language L = {β¨Mβ© | M is a TM that halts on input 0} is:
A) Recursive
B) RE but not recursive
C) Not RE
D) Regular
β
Answer: B
Solution:
Halting for specific input is semi-decidable β simulate M(0) and halt if it halts.
Q8.
Which statement is true for recursively enumerable (RE) languages?
A) All RE languages are recursive
B) Complement of an RE language is RE
C) Some RE languages are not recursive
D) Every RE language is finite
β
Answer: C
Solution:
Halting problem is RE but not recursive β hence, C.
Q9.
Consider L = {β¨Mβ© | L(M) = β
}. Then L is:
A) Decidable
B) Semi-decidable
C) Undecidable
D) Regular
β
Answer: C
Solution:
Emptiness of TM language is undecidable since it requires checking infinite computations.
Q10.
The βacceptance problemβ for TMs is:
A) Decidable
B) Semi-decidable
C) Co-semi-decidable
D) None of these
β
Answer: B
Solution:
We can simulate and halt if accepted; if not, we loop forever β semi-decidable.
Q11.
The complement of an RE language is always:
A) RE
B) Non-RE
C) Recursive
D) Context-free
β
Answer: B
Solution:
Complement may not be RE (e.g., Halting problem complement).
Q12.
Which of the following problems is semi-decidable but not decidable?
A) Halting problem
B) DFA emptiness
C) DFA equivalence
D) CFG ambiguity
β
Answer: A
Solution:
Halting is RE but not recursive.
Q13.
Let Lβ and Lβ be RE but not recursive. Then Lβ β© Lβ is:
A) RE
B) Non-RE
C) Recursive
D) None
β
Answer: A
Solution:
RE languages are closed under intersection.
Q14.
Which among the following is undecidable?
A) Whether a CFG is ambiguous
B) Whether a DFA accepts all strings
C) Whether a DFA accepts β
D) Whether a PDA accepts β
β
Answer: A
Solution:
Ambiguity of CFG is undecidable β no algorithm exists.
Q15.
If a TM accepts an infinite language, which of the following is undecidable?
A) Whether TM halts on input Ξ΅
B) Whether TM accepts infinite language
C) Whether TM rejects all strings
D) Whether TMβs language is empty
β
Answer: B
Solution:
Infiniteness problem for TM is undecidable.
Q16.
Which of these sets is recursive?
A) {β¨M, wβ© | M halts on w}
B) {β¨M, wβ© | M accepts w}
C) {β¨Mβ© | L(M) = Ξ£*}
D) None
β
Answer: D
Solution:
All are undecidable variants of the halting or universality problem.
Q17.
Given two TMs Mβ and Mβ, checking if L(Mβ) = L(Mβ) is:
A) Decidable
B) Semi-decidable
C) Undecidable
D) Co-RE
β
Answer: C
Solution:
TM equivalence problem is classic undecidable problem.
Q18.
Riceβs theorem states that:
A) All non-trivial properties of RE languages are undecidable
B) All trivial properties of RE languages are decidable
C) Both A and B
D) None
β
Answer: C
Solution:
Riceβs theorem β only trivial properties (true for all/none) are decidable.
Q19.
A βnon-trivialβ property means:
A) True for all RE languages
B) False for all RE languages
C) True for some and false for others
D) Dependent on halting
β
Answer: C
Solution:
Non-trivial = property holds for some RE languages but not all.
Q20.
Which is an example of a trivial property?
A) Language accepted is empty
B) Language accepted is Ξ£*
C) Language accepted is non-empty
D) None of the above
β
Answer: D
Solution:
All above are non-trivial β trivial means βtrue for allβ or βfalse for allβ.
Q21.
According to Riceβs theorem, which of these is undecidable?
A) Whether L(M) is regular
B) Whether L(M) = β
C) Whether L(M) = Ξ£*
D) All of the above
β
Answer: D
Solution:
All are non-trivial semantic properties β undecidable.
Q22.
Which property does not make use of Riceβs theorem?
A) Whether TM halts
B) Whether L(M) = β
C) Whether L(M) = Ξ£*
D) Whether L(M) is finite
β
Answer: A
Solution:
Halting concerns TM behavior, not the language recognized.
Q23.
The emptiness problem for PDA is:
A) Decidable
B) Semi-decidable
C) Undecidable
D) Non-RE
β
Answer: A
Solution:
CFG (PDA equivalent) emptiness can be checked via reachability.
Q24.
Which problem is undecidable?
A) Given CFG G, is L(G) = Ξ£? B) Given DFA D, is L(D) = Ξ£?
C) Given PDA P, is L(P) = β
?
D) Given DFA D, is L(D) = β
?
β
Answer: A
Solution:
CFG universality problem β undecidable.
Q25.
The problem βGiven TM M, does M accept at least one string?β is:
A) Decidable
B) Semi-decidable
C) Undecidable
D) Regular
β
Answer: C
Solution:
TM non-emptiness problem β undecidable.
Q26.
Which one is not closed under complement?
A) Recursive
B) RE
C) Regular
D) Context-free
β
Answer: B
Solution:
RE languages are not closed under complement.
Q27.
The problem βGiven TM M, is L(M) finite?β is:
A) Decidable
B) Semi-decidable
C) Undecidable
D) Recursive
β
Answer: C
Solution:
Finiteness of TMβs language β undecidable (Riceβs theorem).
Q28.
Which of these is semi-decidable but not co-semi-decidable?
A) Halting problem
B) Emptiness problem for TM
C) Equivalence of TM
D) Both A and B
β
Answer: D
Solution:
Both halting and emptiness are RE but not co-RE.
Q29.
Given TM M, checking if L(M) is regular is:
A) Decidable
B) Undecidable
C) Semi-decidable
D) Regular
β
Answer: B
Solution:
Regularity is a non-trivial property β Riceβs theorem applies.
Q30.
Which language is recursive?
A) Halting problem
B) TM that halts on all inputs
C) DFA equivalence
D) CFG ambiguity
β
Answer: C
Solution:
DFA equivalence is decidable β recursive.
Perfect π
Here is the complete continuation (Q31β100) of Undecidability β Theory of Computation (GATE Level) MCQs.
All are plagiarism-free, conceptual, and numerically/structurally varied, each with options AβD and detailed explanations.
Q31.
Let L = {β¨Mβ© | TM M accepts string βaaβ}. Then L is:
A) Recursive
B) Recursively enumerable
C) Non-RE
D) Regular
β
Answer: B
Solution:
We can simulate M on input βaaβ; if it halts and accepts, we accept. Hence RE, not recursive.
Q32.
Given two TMs Mβ and Mβ, deciding whether L(Mβ) β L(Mβ) is:
A) Decidable
B) Semi-decidable
C) Undecidable
D) Regular
β
Answer: C
Solution:
Subset check reduces to complement and intersection β involves TM equivalence β undecidable.
Q33.
If a TM halts on every input, then its language is:
A) Recursive
B) Non-RE
C) Non-recursive
D) Undecidable
β
Answer: A
Solution:
If a TM halts for all inputs, membership is decidable β recursive.
Q34.
Which of the following is true?
A) Every recursive language is RE
B) Every RE language is recursive
C) Every regular language is non-recursive
D) None
β
Answer: A
Solution:
Recursive β RE β context-sensitive.
Q35.
The Post Correspondence Problem (PCP) is:
A) Decidable
B) Undecidable
C) Regular
D) Context-free
β
Answer: B
Solution:
PCP was proven undecidable by Emil Post (1946).
Q36.
Modified PCP (with given first tile) is:
A) Decidable
B) Undecidable
C) Context-free
D) Recursive
β
Answer: B
Solution:
Even the constrained version remains undecidable.
Q37.
The complement of PCP is:
A) Recursive
B) RE
C) Not RE
D) Context-free
β
Answer: C
Solution:
PCP is RE, but its complement is not RE.
Q38.
Which is true about recursive and RE languages?
A) Recursive = RE
B) Recursive β RE
C) RE β Recursive
D) None
β
Answer: B
Solution:
All recursive are RE, but not vice versa.
Q39.
The problem βDoes TM M accept input w within 100 steps?β is:
A) Decidable
B) Semi-decidable
C) Undecidable
D) Non-RE
β
Answer: A
Solution:
Finite-step simulation is always decidable.
Q40.
Checking if a TM ever prints symbol β#β during computation is:
A) Decidable
B) Undecidable
C) Semi-decidable
D) None
β
Answer: B
Solution:
Equivalent to halting/behavioral property β undecidable (Riceβs theorem).
Q41.
Which of the following problems is decidable?
A) Whether TM M halts on Ξ΅
B) Whether DFA D accepts Ξ΅
C) Whether TM M halts on all inputs
D) Whether CFG G is ambiguous
β
Answer: B
Solution:
DFA analysis is finite-state decidable.
Q42.
If L is recursive, which of the following is always true?
A) LΜ
is recursive
B) LΜ
is RE
C) LΜ
is non-RE
D) Both A and B
β
Answer: D
Solution:
Recursive languages are closed under complement.
Q43.
Which of the following statements is incorrect?
A) Recursive β RE
B) RE β Recursive
C) Regular β Recursive
D) Context-free β RE
β
Answer: B
Solution:
All recursive are RE, but not all RE are recursive.
Q44.
Which of the following properties is not a property of RE languages?
A) Closed under union
B) Closed under intersection
C) Closed under complement
D) Closed under concatenation
β
Answer: C
Solution:
RE is not closed under complement.
Q45.
Which among the following is both RE and co-RE?
A) Halting problem
B) DFA equivalence
C) Prime number recognition
D) TM that halts on every input
β
Answer: B
Solution:
DFA equivalence β decidable β recursive β both RE and co-RE.
Q46.
The diagonalization method proves:
A) Regularity of languages
B) Existence of uncountable languages
C) Countability of TM encodings
D) None
β
Answer: B
Solution:
Diagonalization proves that set of all languages is uncountable β some are undecidable.
Q47.
Let Lβ and Lβ be RE languages. Then Lβ βͺ Lβ is:
A) RE
B) Recursive
C) Non-RE
D) Finite
β
Answer: A
Solution:
RE closed under union.
Q48.
If Lβ and Lβ are RE, then Lβ β© Lβ is:
A) RE
B) Recursive
C) Non-RE
D) None
β
Answer: A
Solution:
RE languages closed under intersection.
Q49.
If L is recursive, then L* is:
A) Recursive
B) RE
C) Non-RE
D) Undecidable
β
Answer: A
Solution:
Closure property β recursive languages closed under star.
Q50.
Which of the following languages is not RE?
A) Complement of Halting problem
B) Halting problem
C) Acceptance problem
D) All above are RE
β
Answer: A
Solution:
Complement of halting is non-RE.
Q51.
The set of all TMs that accept infinite languages is:
A) Recursive
B) RE
C) Non-RE
D) Regular
β
Answer: C
Solution:
Infiniteness property β non-trivial β Riceβs theorem β undecidable, non-RE.
Q52.
The universality problem for TMs (L(M) = Ξ£*) is:
A) Decidable
B) Undecidable
C) Semi-decidable
D) Regular
β
Answer: B
Solution:
Universality β non-trivial property β undecidable.
Q53.
Which problem can be reduced to the Halting problem?
A) TM equivalence
B) TM emptiness
C) TM finiteness
D) All of these
β
Answer: D
Solution:
All reduce to halting problem β undecidable.
Q54.
A language is RE if there exists:
A) DFA that accepts it
B) PDA that accepts it
C) TM that halts on all inputs
D) TM that halts on accepting inputs only
β
Answer: D
Solution:
RE = TMs that halt on acceptance but may loop otherwise.
Q55.
A language is recursive if there exists:
A) TM halts on all inputs
B) TM halts on some inputs
C) PDA accepting it
D) NFA accepting it
β
Answer: A
Solution:
Recursive means total TM halts on every input.
Q56.
Which is true regarding semi-decidable languages?
A) Their complement is always semi-decidable
B) They are a subset of recursive languages
C) Recursive β RE
D) Both B and C
β
Answer: D
Solution:
All recursive are semi-decidable.
Q57.
Given TM M and input w, the problem βM does not halt on wβ is:
A) RE
B) co-RE
C) Both
D) None
β
Answer: B
Solution:
Complement of halting problem is co-RE, not RE.
Q58.
If Lβ is RE and Lβ is co-RE, then Lβ β© Lβ is:
A) Recursive
B) Non-RE
C) RE
D) Undecidable
β
Answer: A
Solution:
Intersection of RE and co-RE β recursive.
Q59.
Which property is decidable for DFAs but undecidable for TMs?
A) Emptiness
B) Universality
C) Equivalence
D) All of the above
β
Answer: D
Solution:
Finite-state problems β decidable; TM analogues β undecidable.
Q60.
The complement of a recursive language is:
A) Recursive
B) RE
C) Non-RE
D) None
β
Answer: A
Solution:
Recursive closed under complement.
Q61.
Which of the following sets is uncountable?
A) Set of all Turing machines
B) Set of all languages over Ξ£
C) Set of all CFGs
D) Set of all DFAs
β
Answer: B
Solution:
Languages = P(Ξ£*) β uncountable.
Q62.
Which set is countable?
A) Regular languages
B) Context-free languages
C) Recursive languages
D) All of these
β
Answer: D
Solution:
All defined by finite descriptions β countable.
Q63.
If a TM M recognizes L, and Mβ recognizes LΜ
, then L is:
A) RE
B) co-RE
C) Recursive
D) Non-RE
β
Answer: C
Solution:
Both L and complement RE β recursive.
Q64.
Given TM M, deciding if L(M) is empty is:
A) Decidable
B) Semi-decidable
C) Undecidable
D) Co-RE
β
Answer: C
Solution:
Undecidable by Riceβs theorem.
Q65.
Which of the following is decidable?
A) Emptiness for DFA
B) Equivalence for DFA
C) Emptiness for PDA
D) All of the above
β
Answer: D
Solution:
All are decidable for finite automata and CFGs.
Q66.
Given CFG G, deciding if L(G) is infinite is:
A) Decidable
B) Semi-decidable
C) Undecidable
D) None
β
Answer: A
Solution:
Can be decided using graph cycle detection in derivation.
Q67.
The Halting problem is reducible to:
A) PCP
B) Equivalence problem for TM
C) Emptiness problem for TM
D) All
β
Answer: D
Solution:
All classical undecidable problems can encode halting.
Q68.
If a TM never halts, its language is:
A) Ξ£*
B) β
C) RE
D) Non-RE
β
Answer: B
Solution:
Never halts β no acceptance β empty language.
Q69.
The language L = {β¨Mβ© | M halts on Ξ΅} is:
A) Recursive
B) RE
C) Non-RE
D) Regular
β
Answer: B
Solution:
Simulation possible β semi-decidable.
Q70.
A property that depends only on the language recognized by TM is called:
A) Trivial property
B) Semantic property
C) Syntactic property
D) Recursive property
β
Answer: B
Solution:
Riceβs theorem applies to semantic (language-based) properties.
Q71.
Which is a syntactic property?
A) TM halts on all inputs
B) TM has fewer than 10 states
C) TM accepts infinite language
D) TM accepts all strings
β
Answer: B
Solution:
Syntactic = about structure, not language.
Q72.
Which property violates Riceβs theorem?
A) TM halts
B) TM accepts empty language
C) TM accepts all strings
D) TM accepts finite language
β
Answer: A
Solution:
Halting is syntactic β Riceβs theorem not applicable.
Q73.
If L is RE but not recursive, LΜ
is:
A) Recursive
B) Non-RE
C) RE
D) Regular
β
Answer: B
Solution:
Complement of RE non-recursive β non-RE.
Q74.
If both L and LΜ
are non-RE, then L is:
A) Recursive
B) Non-RE
C) Regular
D) Context-free
β
Answer: B
Solution:
Both non-RE implies L is not RE.
Q75.
Which of the following can be proved using reduction?
A) Undecidability of PCP
B) Undecidability of TM equivalence
C) Undecidability of Halting problem
D) All
β
Answer: D
Solution:
All classic undecidability proofs rely on reductions.
Q76.
If language Lβ reduces to Lβ, and Lβ is undecidable, then Lβ is:
A) Decidable
B) Undecidable
C) Recursive
D) None
β
Answer: B
Solution:
Reduction preserves undecidability.
Q77.
If Lβ β€β Lβ and Lβ is undecidable, then:
A) Lβ must be undecidable
B) Lβ must be recursive
C) Lβ may be recursive
D) None
β
Answer: A
Solution:
Mapping reduction transmits hardness upward.
Q78.
Which of these can be used to show a language is not recursive?
A) Riceβs theorem
B) Halting problem reduction
C) Diagonalization
D) All
β
Answer: D
Solution:
All are tools for proving undecidability.
Q79.
Halting problem is reducible to which of the following?
A) TM equivalence
B) TM universality
C) PCP
D) All
β
Answer: D
Solution:
All encode halting behavior.
Q80.
Which statement is true?
A) All RE languages are recursive
B) All recursive are RE
C) All regular are non-RE
D) RE = recursive
β
Answer: B
Solution:
Recursive β RE.
Q81.
Which of the following is undecidable for TM?
A) Emptiness
B) Finiteness
C) Universality
D) All
β
Answer: D
Solution:
All are non-trivial β Riceβs theorem.
Q82.
Which among these languages is recursive?
A) L = {β¨Mβ© | M halts on Ξ΅}
B) L = {β¨Mβ© | L(M)=β
}
C) L = {β¨Dβ© | D is DFA with 3 states}
D) L = {β¨Mβ© | M halts on all inputs}
β
Answer: C
Solution:
Structural (syntactic) property β decidable.
Q83.
Which property is semantic?
A) Number of states in TM
B) L(M) = Ξ£*
C) TM has even transitions
D) TM halts within 5 steps
β
Answer: B
Solution:
Depends on language, not structure.
Q84.
If Lβ β€β Lβ and Lβ is recursive, then Lβ is:
A) Recursive
B) Non-RE
C) Undecidable
D) None
β
Answer: A
Solution:
Recursive closed under reduction from simpler languages.
Q85.
Which of these is semi-decidable?
A) TM halts on input
B) TM accepts input
C) PCP has solution
D) All
β
Answer: D
Solution:
All RE β semi-decidable.
Q86.
Which of these problems is co-semi-decidable?
A) Complement of Halting
B) Complement of PCP
C) TM halts on all inputs
D) All
β
Answer: D
Solution:
Complements of semi-decidable problems β co-RE.
Q87.
If Lβ and Lβ are recursive, Lβ β Lβ is:
A) Recursive
B) Non-RE
C) RE
D) Undecidable
β
Answer: A
Solution:
Recursive languages closed under difference.
Q88.
If Lβ is RE and Lβ non-RE, then Lβ βͺ Lβ is:
A) RE
B) Non-RE
C) Recursive
D) None
β
Answer: B
Solution:
Union with non-RE yields non-RE.
Q89.
The complement of a co-RE language is:
A) RE
B) Non-RE
C) Recursive
D) Regular
β
Answer: A
Solution:
Complement of co-RE β RE.
Q90.
Which of these is a non-trivial semantic property?
A) L(M)=β
B) TM has 2 states
C) TM halts on all inputs
D) TM transitions < 10
β
Answer: A
Solution:
Non-trivial + language-based β Riceβs theorem β undecidable.
Q91.
Given TM M, deciding whether L(M) is finite is:
A) Decidable
B) Undecidable
C) Semi-decidable
D) None
β
Answer: B
Solution:
Non-trivial property β undecidable by Rice.
Q92.
Which of the following can be proven undecidable by Riceβs theorem?
A) L(M) is empty
B) L(M) finite
C) L(M) = Ξ£*
D) All
β
Answer: D
Solution:
All are non-trivial language properties.
Q93.
Riceβs theorem applies to:
A) Regular languages
B) PDA properties
C) TM language properties
D) DFA properties
β
Answer: C
Solution:
Applies only to Turing-recognizable language properties.
Q94.
The language {β¨Mβ© | M accepts w} is:
A) Recursive
B) RE
C) Non-RE
D) None
β
Answer: B
Solution:
Acceptance problem β semi-decidable.
Q95.
If both L and LΜ
are RE, then L is:
A) Recursive
B) Regular
C) Non-RE
D) Context-free
β
Answer: A
Solution:
Intersection of RE and co-RE β recursive.
Q96.
The set of non-halting TMs is:
A) RE
B) co-RE
C) Non-RE
D) Recursive
β
Answer: C
Solution:
Complement of halting β non-RE.
Q97.
The acceptance problem for TMs is:
A) Decidable
B) Semi-decidable
C) Non-RE
D) Regular
β
Answer: B
Solution:
RE but not recursive.
Q98.
Given two TMs Mβ, Mβ, checking if L(Mβ)=L(Mβ) is:
A) Decidable
B) Undecidable
C) Semi-decidable
D) Regular
β
Answer: B
Solution:
TM equivalence problem β undecidable.
Q99.
Given TM M, deciding if L(M) = Ξ£* is:
A) Decidable
B) Semi-decidable
C) Undecidable
D) Co-RE
β
Answer: C
Solution:
Non-trivial property β undecidable.
Q100.
Which of the following is true?
A) Every RE language is recursive
B) Every recursive language is RE
C) Every regular language is non-RE
D) None
β
Answer: B
Solution:
Recursive β RE, equality false.