(Many of these problems are borrowed from TA Lisa)

 

(define (fish meal) ‘whatever)

(define five 5)

(define (six) 6)

 

What –exactly- is the variable ‘fish’ bound to?________________________________

What –exactly- is the variable ‘five’ bound to?________________________________

What –exactly- is the variable ‘six’ bound to?_________________________________

 

Given the above definitions, what value and type would the following scheme expressions return? (Some may be errors.)

 

(+ ‘1 ‘2 ‘3)

(+ 1 2 3)

(‘+ ‘1 ‘2 ‘3)

 

 

(+)

(*)

(-)

 

 

(first 2/6)

(first ‘2/6)

(bf 2/6)

 

 

(bf 00012)

(bf ‘00012)

(bf ‘r0012)

 

 

(se ‘(fish fish) (fish fish))

(se (fish fish) (fish fish))

(se ‘((fish fish) (fish fish)))

 

 

six

‘six

(six)

 

 

‘(six)

‘’(six)

‘(‘six)

 

 

five

‘five

(five)

 

 

(= 1 ‘1)

(= six 6)

(= five 5)

 

 

(if (3) ‘yes ‘no)

(if 0 ‘yes ‘no)

(if “” ‘yes ‘no)

 

 

(if ‘() ‘yes no)

 

(let ((a 3)) a)

(let ((five 6)) (+ five (six)))