Question

Provide the cons cell diagram for the following lists: (A TOLL (CALL)) ((FUN IN) THE (SUN))...

  1. Provide the cons cell diagram for the following lists:
    • (A TOLL (CALL))
    • ((FUN IN) THE (SUN))
    • ((THIS IS) ONLY (A TEST))
  2. What is the CAR of each of the lists in problem #1?
  3. What is the CDR of each of the lists in problem #1?
  4. What is the CDAR of each of the lists in problem #1?
  5. What is the CADR of each of the lists in problem #1?
0 0
Add a comment Improve this question Transcribed image text
Answer #1

car for the lists:

1) A

2) (FUN IN)

3) (THIS IS)

cdr of the lists:

1) (TOLL(CALL))

2) (THE(SUN))

3) (ONLY(A TEST))

cdar of lists:

1) (TOLL(CALL))

2) (IN)

3) (IS)

cadr of lists:

1) (TOLL)

2) (THE)

3) (ONLY)

Add a comment
Know the answer?
Add Answer to:
Provide the cons cell diagram for the following lists: (A TOLL (CALL)) ((FUN IN) THE (SUN))...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT