13.5 Quiz: Recursivity and lists (Ad)

Question:

What is a list?

Choose an answer:
A list is an ordered sequence of items.
A list is an unordered sequence of items.

Hints at: 13.1 The definition of a list (Ad).

Question:

What is an element of a list?

Choose an answer:
An element is the 'nil' end-of-list marker.
An element is an item in the list.

Hints at: 13.1 The definition of a list (Ad).

Question:

What are the ingredients that make a definition recursive?

Choose an answer:
It has an element of self-reference, plus a base case.
It has an element of self-reference.

Hints at: 13.1 The definition of a list (Ad).


Prev: 13.4 Example of a recursive predicate (Ad)
Up: 13 Recursivity and lists (Ad)
Next: 14 Prolog+CG (Ad)