M9: Quiz

For functional programming languages, the scope of a local name

is always the entire program.
starts immediately at the point when the name is declared.
is in the body part of the declaration or definition.
is exactly same as object-oriented programming languages such as C++.
Click the card to flip 👆
1 / 13
Terms in this set (13)
What statement is accurate and correct for Scheme lists compared to pairs? (Be sure to consider the special case for an empty list!) Every pair is a list. There is only one pair that is not a list. Every list is a pair. There exists a list that is not a pair.There exists a list that is not a pair.Which of the following is equivalent to the expression below? (car (cdr '(1 2 3 4 5)) (cadr '(1 2 3 4 5)) (caddr '(1 2 3 4 5)) (cdar '(1 2 3 4 5)) (cacdr '(1 2 3 4 5))(cadr '(1 2 3 4 5))Given this expression, what is the expected result? (car (cdr '(1 2 3 4 5)) 1 2 3 42