Question: For problems 9-14, use the following two lists: LIST1 -> (I (really like) my (Artificial Intelligence) class) LIST2 -> ((but I) especially ((really) really like)

For problems 9-14, use the following two lists: LIST1 -> (I (really like) my (Artificial Intelligence) class) LIST2 -> ((but I) especially ((really) really like) LISP) 9. (5 pts.) How many elements does LISTI contain? (i.e. What is (length LIST1)?) 10. (5 pts.) Give the cons cell notation for LIST2. 11. (5 pts) What is the result of (cadr LIST1)? 12. (5 pts) What is the result of (cdddr LIST1)? 13. (5 pts) What is the result of (cddar LIST2)? 14. (5 pts) What is the result of (cadddr LIST2) ? For problems 9-14, use the following two lists: LIST1 -> (I (really like) my (Artificial Intelligence) class) LIST2 -> ((but I) especially ((really) really like) LISP) 9. (5 pts.) How many elements does LISTI contain? (i.e. What is (length LIST1)?) 10. (5 pts.) Give the cons cell notation for LIST2. 11. (5 pts) What is the result of (cadr LIST1)? 12. (5 pts) What is the result of (cdddr LIST1)? 13. (5 pts) What is the result of (cddar LIST2)? 14. (5 pts) What is the result of (cadddr LIST2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
