CS 342 Lecture -*- Outline -*- * Quiz on basics of Scheme (define L1 '(a b (c (d e) f) g)) 1. draw a picture of L1 For each of the following, give the expression's value: 2. (car L1) 3. (cddr L1) 4. (pair? (cadr L1)) 5. (pair (caddr L1)) 6. Construct, using cons, each of the following lists: a. (1 2 3) b. (1 (2 3)) c. (1 (2) 3) d. ((1 2 3)) 7. Write a function list-of-nums? that takes a list as its argument and returns #t if the list contains only numbers, #f otherwise. 8. Write a function pay-increase that takes a list of numbers and a fraction (between 0 and 1) and returns a list of numbers such that the ith element of the result list is one plus the fraction times the ith element of the original list.