For all questions, assume the following definitions have been executed:
(define s '(a b c d))
(define l '((a b) c d)) ;; That's the letter l (small L), not the numeral 1 (one)
Write down the value of each of these expressions:
s
(a b c d)
(car s)
a
(cdr s)
(b c d)
(cons 'a '(b c d))
(a b c d)
(cons (car s) (cdr s))
(a b c d)
(car (cdr s))
b
(cadr s)
b
l ;; That's the letter l (small L), not the numeral 1 (one)
((a b) c d)
(car l)
(a b)
(cdr l)
(c d)
(cons '(a b) '(c d))
((a b) c d)
(cons (car l) (cdr l))
((a b) c d)
(list '(a b) '(c d))
((a b) (c d))
(append '(a b) '(c d))
(a b c d)