Question

If lst is equal to '(a (b c) (d)), what is (car (cdr lst)) equal to:...

If lst is equal to '(a (b c) (d)), what is (car (cdr lst)) equal to:

(Select multiple correct answers)

a.(cadr lst)

b.'(d)

c.'((b c) (d))

d.'(b c)

e. (cdar lst)

Homework Answers

Answer #1

a] (cadr lst) and e] (cdar lst)

car stands for the first element and cdr stands for the rest elements. So in the expression (car (cdr lst)), let's take the inside one (cdr lst). Here the elements except the first element of the list lst is obtained. That is cdr lst = a ( b c )( d )). Now car of this element is the first element that is "a". In the options (cadr lst) and (cdar lst) both are same and gives second element of the list lst as the output which is equal to "a".

Know the answer?
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
Similar Questions
A multiple-choice test consists of 27 questions with possible answers of a, b, c, d, e,...
A multiple-choice test consists of 27 questions with possible answers of a, b, c, d, e, f. Estimate the probability that with random guessing, the number of correct answers is at least 8.
A multiple-choice test consists of 20 questions with possible answers of a, b, c, d, e....
A multiple-choice test consists of 20 questions with possible answers of a, b, c, d, e. Estimate the probability that with random guessing the number of correct answers is at least 10. use excel to obtain more accuarcy.
A number between 1 and 10 is chosen. Events A, B, C, and D are defined...
A number between 1 and 10 is chosen. Events A, B, C, and D are defined as follows. A: {The number is even} B: {The number is less than 7} C: {The number is less than or equal to 7} D: {The number is 5} Identify all events that are mutually exclusive. Select one: a. C and D b. None of the other answers c. A and B d. A and C e. B and D
The diagram below shows 6 vectors: a, b, c, d, e and f. Each side of...
The diagram below shows 6 vectors: a, b, c, d, e and f. Each side of a grid square represents a length of 3 m. Select two correct statements from the list. Select one or more: The bearing of the resultant vector a + c is 90o The resultant vector c + d + f is 36 m long at a bearing of 90o b and e are equal vectors The magnitudes of the resultant vectors c + d and...
Jimmy has a quiz today that is multiple choice (a, b, c, or d) with ten...
Jimmy has a quiz today that is multiple choice (a, b, c, or d) with ten questions, but he did not study, so he decides to randomly mark answers on his scantron without reading the questions. a) Why should the number of questions Jimmy gets correct on the quiz follow a binomial distribution, to wit, what are the requirements to use a binomial distribution and how are they met in this scenario? b) List the parameters that define this distribution...
In car racing competition, four car brands A, B, C, and D are competing with two...
In car racing competition, four car brands A, B, C, and D are competing with two cars each. Each of the cars from A, B, C have the same chance of winning, while each of D’s cars have twice the chance of winning. What is the probability of winning for the D brand?
         d          - a     b    c           +    e    Consider the...
         d          - a     b    c           +    e    Consider the arrangement of two fixed point charges, equal in magnitude, shown in the figure. Which of the following statements are correct for the initial motion of a third charge if it is released from rest in the vicinity of the two charges shown? (Correct or incorrect) A positive charge at point d will accelerate up. A negative charge at point b will accelerate down. A...
A multiple choice test consists of 23 questions with possible answers of a,b,c,d. Estimate the probability...
A multiple choice test consists of 23 questions with possible answers of a,b,c,d. Estimate the probability that with random guessing the number of correct answers is at least 11.
When making random guesses for difficult multiple choice test questions with possible answer of A,B,C,D, and...
When making random guesses for difficult multiple choice test questions with possible answer of A,B,C,D, and E. We expect to get 20% answers correct. A student uses another method of guessing and get 23% answers correct. There is a chance of 26% of getting such result if this method is as good as guessing. A) Does the method used by the student have statistical significant ? Explain. B) Does the method used by the student have practical significant ? Explain.
1.)You make random guesses for 10 multiple choice questions (options are a, b, c, d, or...
1.)You make random guesses for 10 multiple choice questions (options are a, b, c, d, or e) on a test, answer the following. What is the probability of getting none of the questions correct (Event G)? What is the probability of getting at least one of the questions correct? What is the complement of event G? (in words).
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT