Lab Quiz Solutions, Foundations of Computing, Week 5 -- Tue Oct 24 2000

For all questions, assume the following definition has been executed:

(define wd 'view)
  1. (word 'pre wd)

    1. What is the value of wd in this expression? -- view

    2. What is the value of this expression? -- preview

  2. ((lambda (wd) (word 'pre wd)) 'fix)

    1. What is the value of wd in this expression? -- fix

    2. What is the value of this expression? -- prefix

  3. (every (lambda (wd) (word 'pre wd)) '(view fix tense))

    1. What are the values of wd in this expression? -- view, fix, and tense

    2. What is the value of this expression? -- (preview prefix pretense)