Questions: Decidable Languages

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A program P is given a description of a Turing machine M and input w. When M accepts w, P always halts and outputs 'yes.' When M rejects or loops on w, P sometimes outputs 'no' and sometimes runs forever. Is P a decider for the acceptance problem?

AYes — P always gives the correct answer when M accepts, so it correctly recognizes the language
BNo — a decider must halt on ALL inputs and produce a definitive yes or no; P fails this requirement for inputs where M rejects or loops
CYes — P never outputs a wrong answer, which is sufficient for a decider
DNo — the acceptance problem requires checking infinitely many inputs simultaneously
Question 2 Multiple Choice

All regular and context-free languages are decidable. Which is the key reason that gives these language classes decidability guarantees that do not extend to all languages?

ARegular and CFL grammars are simple enough that TMs can process them without using the tape
BSimulating a DFA on finite input always terminates; the CYK algorithm for CFLs always terminates — both provide guaranteed yes/no answers in finite time
CThese language classes contain only finite strings, so all decisions terminate
DAll language classes are decidable given sufficient computing time
Question 3 True / False

If a language L is decidable, then its complement (all strings NOT in L) is also decidable.

TTrue
FFalse
Question 4 True / False

A Turing machine that runs forever on a specific input has encountered an undecidable problem.

TTrue
FFalse
Question 5 Short Answer

Why is the distinction between 'recognizable' and 'decidable' practically important, and not merely a theoretical curiosity?

Think about your answer, then reveal below.