EECS 325 Quiz 2

Netid: -- enter netid to see quiz (and get credit when you save your answers).

What do the following calls to FOO return?

(defun foo (x y)
  (cond ((eql x '*) t)
        ((atom x) (eql x y))
        ((atom y) nil)
        ((foo (car x) (car y))
         (foo (cdr x) (cdr y)))
        (t nil)))
 CallResult
Q1(foo '* 'a)
Q2(foo '(*) '(a b))
Q3(foo '(* *) '(a b))
Q4(foo '(*) '((a b)))
Q5(foo '* '())
Q6(foo '(*) '())

You can change your answers until the quiz is stopped.