[amp_mcq option1=”returns a new list that is equal to by copying the top-level element of” option2=”returns the length of” option3=”returns t if is empty.” option4=”All of the above E. None of the above” correct=”option2″]
The correct answer is: B. returns the length of
The function (list-length ) returns the length of the list. It does not return a new list, nor does it return t if the list is empty.
Here are some examples of how the function (list-length ) can be used:
(list-length '(1 2 3)) => 3
(list-length '()) => 0
(list-length '(a b c d e)) => 5