Questions
What does arbitrary-sized data mean in SPD?
Multiple choice
What does cons do?
Multiple choice
What does rest produce for a non-empty list?
Multiple choice
Where is the self-reference in (cons String ListOfString)?
Multiple choice
Why does a well-formed self-referential data definition need a base case?
Multiple choice
Why does it need a self-reference case?
Multiple choice
What template feature is produced by a self-reference such as (rest los) is ListOfString?
Multiple choice
Why is (fn-for-los (rest los)) called natural recursion?
Multiple choice
In a list template, what does the compound cons case contribute?
Multiple choice
For a sum function on ListOfNumber, what is a natural non-empty combination?
Multiple choice
For a count function on ListOfNumber, why might the body ignore (first lon)?
Multiple choice
How can a contains? function sometimes differ from sum in recursion behavior?
Multiple choice
Why is a two-element test important for a recursive list function?
Multiple choice
When copying a list template into a real function, what must be renamed?
Multiple choice
A purpose says keep strings with more than 3 characters. Which comparison matches it?
Multiple choice