Question: What does quote do? Creates a reference to an object Inhibits the normal evaluation of an object Delimits strings or characters Marks an application of
What does quote do?
Creates a reference to an object
Inhibits the normal evaluation of an object
Delimits strings or characters
Marks an application of a function or a procedure
What is the return value of the following function application:
(car (cdr (a (b c))))?
b
(b c)
((b c))
None of the above
What is the return value of the following function application:
(quote (quote ( + 1 2))) ?
3
quote
' ( + 1 2)
None of the above
What is the return value of the following function application:
(and 1 #t 2) ?
#t
()
1
2
What is the return value of the following function application:
(or 1 2)?
#t
#f
1
2
What is the return value of the following function application:
(cdr (list 'a '(b)))?
b
(b)
( ( b) )
( )
What is the return value of the following function application:
(if (car '(a b)) (list) (+)) ?
error
0
( )
a
What is the return value of the following function application:
(cond (#f 1 )(#t 2)(else 3))
1
2
3
error
What is the return value of the following function application:
((lambda (x) (/ (+ x 1) ( - x 1))) 3) ?
3
4
2
1
What is the return value of the following function application:
((car (cdr (list + - * /))) 15 3) ?
18
12
5
45
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
