Questions
What is the base case in the self-referential Natural definition?
Multiple choice
What role does add1 play in the structural analogy with lists?
Multiple choice
What role does sub1 play in the analogy?
Multiple choice
Why is there no separate first selector in the Natural template?
Multiple choice
Which expression creates the natural recursion in the Natural template?
Multiple choice
What should countdown 0 produce when counting down from n to 1 and excluding 0?
Multiple choice
What is the base-case value for factorial 0?
Multiple choice
Why would using 0 as factorial base case be wrong?
Multiple choice
What important second phase should a factorial trace show after reaching factorial 0?
Multiple choice
In the parlor-trick representation, what represents zero?
Multiple choice
In the custom NATURAL representation, what should ADD1 do?
Multiple choice
Why is SUB1 normally specified only for NATURAL > 0?
Multiple choice
What is wrong with using built-in <= and - inside the no-numbers parlor-trick implementation?
Multiple choice
How should multiplication be expressed using the custom NATURAL primitives?
Multiple choice
What larger lesson does the parlor trick demonstrate?
Multiple choice