What is (rest '((a b) (c d))) ?

  • A: ((b) (c d))
  • B: (c d)
  • C: (b (c d))
  • D: ((c d))
  • E: null

    Answer: D

    rest returns the rest of a list after the first thing.

    In the parenthesized notation, move the opening parenthesis to the right past the first thing; that is the answer. Moving the opening paren past (a b) leaves ((c d)).

    Page-10    Prev    Next    Page+10