Week 2 Quiz

Which of the following results should be returned as a result of the following function definition and corresponding function call? (defun fun (x) (cond ((not x) 0) (t (+ (fun (cdr (cdr x))) (car x))) ) ) (fun (quote (1 2 3 4)))
10
6
4
7
None
Which of the following results should be returned as a result of the following function definition and corresponding function call? (defun fun (x y) (cond ((not y) y) ((eq x (car y)) x) (t (fun x (cdr y))) ) ) (fun 3 (quote (1 2 3 4)))
Nil
3
(1 2 3 4)
(3 4)
None
{"name":"Week 2 Quiz", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Which of the following results should be returned as a result of the following function definition and corresponding function call? (defun fun (x) (cond ((not x) 0) (t (+ (fun (cdr (cdr x))) (car x))) ) ) (fun (quote (1 2 3 4))), Which of the following results should be returned as a result of the following function definition and corresponding function call? (defun fun (x y) (cond ((not y) y) ((eq x (car y)) x) (t (fun x (cdr y))) ) ) (fun 3 (quote (1 2 3 4)))","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}

More Quizzes

Grammar's Great Divide: The Oxford Comma
520
Idk
6336
WHICH SIMS 4 WORLD ARE YOU
12623
What RPG class are you
14712708
Nyoomology
22110
Movie
100
The Wiggle Quiz (Easy Mode)
1050
Christmas Party Awards
14721
Help me pick a url & title for the deancassie event!
320
Directions: Read the following passage and answer the questions that follow. Refer to the textto check your answers when appropriate.      Winter is cold in some places. Many plants do not grow during winter. Some plants die. Snow and ice may cover the ground . It can be hard for animals to find food during winter. Animals get through this time in many ways. Birds and butterflies can fly. Many of them do not stick around for the winter. They leave. They go to a place with nice weather.Then they come home in the spring. We call this migration. Migrating is a good way to avoid the cold. Another good way to avoid the cold is to sleep through it. Many animals hide during the winter. Their bodies slow down. They save their energy. They do not eat. They live off of their fat. They do this until food returns. We call this hibernation. Snakes, frogs, and bears hibernate. Some animals store food in their homes. They do not sleep all winter, but they do much less. They live on what they saved in the summer and fall. This is what squirrels, beavers, and raccoons do. Skunks do this too. Other animals tough it out. They do not leave. They do not hide. They must survive.Sometimes nature helps them out. Some animals grow thicker coats in the winter.Other animals change color. The arctic fox is brown in the summer. His coat turns white in the winter. Winter may be pretty. It is nice to see snowon the trees. But it is dangerous too. People are also at risk. You can get frost bitten or worse. How do you beat the winter? Doyou wear a thick coat? Do you stay inside? Or do you live somewhere warm?
1580
Arctic, Economy, snap lake, Northwest Territories
520
Google Adwords- OVERTURES Program
940
Powered by: Quiz Maker