100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten
logo-home
CSE 240 Final Exam Review (Answered) 92 Questions and Correct Answers, 2024/2025. $11.99
In winkelwagen

Tentamen (uitwerkingen)

CSE 240 Final Exam Review (Answered) 92 Questions and Correct Answers, 2024/2025.

 0 keer verkocht
  • Vak
  • Instelling

CSE 240 Final Exam Review (Answered) 92 Questions and Correct Answers, 2024/2025.

Voorbeeld 2 van de 10  pagina's

  • 4 november 2024
  • 10
  • 2024/2025
  • Tentamen (uitwerkingen)
  • Vragen en antwoorden
avatar-seller
CSE 240 Final Exam Review
(Answered) 92 Questions and Correct
Answers, 2024/2025.
Functional programming languages do NOT allow us to define:

variables whose value can be modified.

The statement "a function is a first-class object" means that a function

can be placed in a place where a value is expected.

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

infix notation

Convert the following expression into prefix-p notation (a Scheme statement):
-5 * (2 + 1/2) + 40

(+ (* (- 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!)...

have side-effects.

Which of the following is a valid Scheme expression?

(* 9 (/ (- 4 2) 7))

Convert the following expression into prefix-p notation (a Scheme statement):
10 + (5 - 3) +

(+ 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:

Scheme

What is the expected result for this expression (in Scheme)?
(string-ref "Hello World" 4)

#\o

Which of the following expression will return false (#f)?

(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)

"I'm a number"

Which of the following are typical advantages of using a REPL for software development?

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.

What data structure is used in Scheme for representing extremely large integers?

probably a list. Really: we shouldn't know or care.

The Scheme form (char? #\5) will return

true (#t)

What statements contain non-functional features of Scheme? Select all that apply.

(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))))

procedures are first class objects.

A let-form in Scheme defines a set of

local names.

A let-form in Scheme is equivalent (in giving names to values) to

an unnamed/lambda procedure.

Given the Scheme code, answer the following questions.
((lambda (x)
((lambda (x y)
(+ x y))
4 (* 6 x)))
3)
(1) The value to be passed to the parameter y is 18 .
(2) The final output of the piece of code is 22 .

Dit zijn jouw voordelen als je samenvattingen koopt bij Stuvia:

Bewezen kwaliteit door reviews

Bewezen kwaliteit door reviews

Studenten hebben al meer dan 850.000 samenvattingen beoordeeld. Zo weet jij zeker dat je de beste keuze maakt!

In een paar klikken geregeld

In een paar klikken geregeld

Geen gedoe — betaal gewoon eenmalig met iDeal, Bancontact of creditcard en je bent klaar. Geen abonnement nodig.

Focus op de essentie

Focus op de essentie

Studenten maken samenvattingen voor studenten. Dat betekent: actuele inhoud waar jij écht wat aan hebt. Geen overbodige details!

Veelgestelde vragen

Wat krijg ik als ik dit document koop?

Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.

Tevredenheidsgarantie: hoe werkt dat?

Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.

Van wie koop ik deze samenvatting?

Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper ACADEMICAIDSTORE. Stuvia faciliteert de betaling aan de verkoper.

Zit ik meteen vast aan een abonnement?

Nee, je koopt alleen deze samenvatting voor $11.99. Je zit daarna nergens aan vast.

Is Stuvia te vertrouwen?

4,6 sterren op Google & Trustpilot (+1000 reviews)

Afgelopen 30 dagen zijn er 64670 samenvattingen verkocht

Opgericht in 2010, al 15 jaar dé plek om samenvattingen te kopen

Start met verkopen

Laatst bekeken door jou


$11.99
  • (0)
In winkelwagen
Toegevoegd