Questions: Partial vs. Total Recursive Functions

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A programmer writes a function f that is computable and she has proven it halts on every possible input. What is the correct classification of f?

Af is a total recursive function, because it is computable and halts for all inputs
Bf is partial recursive but not total, because all computable functions may fail to terminate on some inputs
Cf is primitive recursive but not total recursive, because total recursive functions require additional proof techniques
Df cannot be classified without knowing whether it uses the µ-operator
Question 2 Multiple Choice

A theorem states that the set of total recursive functions is not recursively enumerable. What does this imply for a hypothetical program TOTAL(f) that claims to decide whether any given program f halts on every input?

ATOTAL(f) would need to run f on all inputs before deciding, but could still halt in principle for finite input domains
BTOTAL(f) cannot exist as a computable algorithm — deciding totality is undecidable
CTOTAL(f) exists but requires exponential time to terminate
DTOTAL(f) exists for all primitive recursive programs but fails only for µ-recursive programs
Question 3 True / False

Nearly every partial recursive function can be extended to a total recursive function by defining its output to be 0 on inputs where it would otherwise diverge.

TTrue
FFalse
Question 4 True / False

A function that is defined (returns a value) for most natural number input is expected to be computable by some Turing machine.

TTrue
FFalse
Question 5 Short Answer

Explain why partiality is unavoidable in any sufficiently powerful computational model: why can't we simply restrict to total programs while keeping the same expressive power?

Think about your answer, then reveal below.