Chapter 10

Question 1
A lambda expression is used to create:


A conditional expression
A nameless function
A lambda variable
A list


Question 2
Which of the following are valid identifiers in Scheme?


/*
0.5
1
??


Question 3
When applied to a list, what does the function cdr do


Returns the remainder of a list
Returns the first element of a list
Concatenates two lists
Constructs a list


Question 4
What does the function cons do?


Constructs a dotted pair from two parameters
Constructs a list from parameters
Constructs expressions
Concatenates two lists


Question 5
What does the function list do?


Constructs a dotted pair from two parameters
Constructs a list from parameters
Adds an element to the beginning of a list
Concatenates two lists


Question 6
When applied to a list, what does the function car do?


Returns the remainder of a list
Returns the first element of a list
Concatenates two lists
Constructs a list


Question 7
Where was Scheme created?


at Harvard
At MIT
At Stanford
At CMU


Question 8
All recursive functions are tail recursive.


True
False


Question 9
What is the name of the multiple selector in Scheme?


IF
COND
DEFINE
QUOTE


Question 10
Purely functional languages do not enjoy the property of referential transparency.


True
False