What is the value of
(sublis '((z 4) (y 3) (x 2)) '(* x y))

  • A: error
  • B: (* x y)
  • C: (* x 3)
  • D: 6
  • E: (* 2 3)

    Answer: E

    sublis makes a copy of its second argument, replacing variables with their values as given in the association list that is the first argument.

    Contents    Page-10    Prev    Next    Page+10    Index