Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a ) What will be the result of the Scheme expression below? ( CADDR ' ( ( ( A K ) ( D E )

a) What will be the result of the Scheme expression below?
(CADDR '(((A K)(D E) N)(I Z)(C S) E)) Answer:
b) What will be the result of the Scheme expression below?
(CONS '(A K)(CONS '(D E)(CONS '(N I Z)'(C S E)))) Answer:
c) Given the Scheme function f, what will be
the results of the calls on the right?
(DEFINE (f s lis)
(COND
((NULL? lis)'())
((EQUAL? s (CAR lis))(CDR lis))
(ELSE (f s (CDR lis)))
))
(f 't '(a g c t a t g c))->
(f 't '(a g c (t a) t g c))->
(f 't '(a g c t (a t g) c))->

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

Have I incorporated my research into my outline effectively?

Answered: 1 week ago