Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started