Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

CSE 240 FINAL EXAM REVIEW EXAM QUESTIONS AND ANSWERS GRADED A+ 2026

Beoordeling
-
Verkocht
-
Pagina's
16
Cijfer
A+
Geüpload op
18-03-2026
Geschreven in
2025/2026

CSE 240 FINAL EXAM REVIEW EXAM QUESTIONS AND ANSWERS GRADED A+ 2026

Instelling
CSE 240
Vak
CSE 240

Voorbeeld van de inhoud

CSE 240 FINAL EXAM REVIEW EXAM
QUESTIONS AND ANSWERS GRADED A+
2026



Functional programming languages do NOT allow us to define: - ANS variables whose value
can be modified.



The statement "a function is a first-class object" means that a function - ANS can be placed in
a place where a value is expected.



What notation requires parentheses in order to correctly define the order of computation? -
ANS infix notation



Convert the following expression into prefix-p notation (a Scheme statement):

-5 * (2 + 1/2) + 40 - ANS (+ (* (- 5) (+ 2 (/ 1 2))) 40)



One of the major differences between the imperative and functional programming languages is
that the functional programming languages do NOT (in general!)... - ANS have side-effects.



Which of the following is a valid Scheme expression? - ANS (* 9 (/ (- 4 2) 7))



Convert the following expression into prefix-p notation (a Scheme statement):


@COPYRIGHT 2026/2027 ALLRIGHTS RESERVED 1

,10 + (5 - 3) + - ANS (+ 10 (- 5 3) (/ 2 4))



Given an expression: x1 + x2 + x3 + x4



Which language allows us to evaluate the expression in this order: (1) x1 plus x2; (2) x3 plus x4;
(3) sum of ( x1 + x2 ) plus sum of ( x3 + x4 ), without concern for producing a different result
than other evaluation orders: - ANS Scheme



What is the expected result for this expression (in Scheme)?

(string-ref "Hello World" 4) - ANS #\o



Which of the following expression will return false (#f)? - ANS (number? #\7)



Given this procedure, what is the return result?

(define (guess value)

(cond ((number? value) "I'm a number")

((char? value) "I'm a character")

((integer? value) "I'm a integer")))

(guess 10) - ANS "I'm a number"



Which of the following are typical advantages of using a REPL for software development? -
ANS They let you interact with a program after it has populated the environment to
understand what is happening.



They let you experiment with small pieces of code to understand how they work.




@COPYRIGHT 2026/2027 ALLRIGHTS RESERVED 2

, What data structure is used in Scheme for representing extremely large integers? -
ANS probably a list. Really: we shouldn't know or care.



The Scheme form (char? #\5) will return - ANS true (#t)



What statements contain non-functional features of Scheme? Select all that apply. -
ANS (begin (write x) x)



(display x)



What functional feature does the code below best exhibit?



(define start-engine (lambda ()

(error-detection (wheel-velocity (wheel-sensor)) (body-velocity)))) - ANS procedures are first
class objects.



A let-form in Scheme defines a set of - ANS local names.



A let-form in Scheme is equivalent (in giving names to values) to - ANS an unnamed/lambda
procedure.



Given the Scheme code, answer the following questions.

((lambda (x)

((lambda (x y)

(+ x y))

4 (* 6 x)))

3)
@COPYRIGHT 2026/2027 ALLRIGHTS RESERVED 3

Geschreven voor

Instelling
CSE 240
Vak
CSE 240

Documentinformatie

Geüpload op
18 maart 2026
Aantal pagina's
16
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$12.99
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
Brightstars Havard School
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
237
Lid sinds
1 jaar
Aantal volgers
7
Documenten
13557
Laatst verkocht
1 week geleden
VERIFIED EXAMS AND STUDY GUIDES.

Here, you will find Study Notes, Exam answer packs 100% Guarenteed success.

3.2

34 beoordelingen

5
11
4
4
3
8
2
3
1
8

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen