CSE 240 ACTUAL CERTIFICATION PAPER
2026 QUESTIONS WITH ANSWERS FULL
SOLUTION.
◉ 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.
◉ 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)
(1) The value to be passed to the parameter y is 18 .
(2) The final output of the piece of code is 22 .. Ans: (1) 18
(2) 22
◉ Given the Scheme code, answer the following two questions.
((lambda (x)
((lambda (x y)
(+ x y))
5 (* 7 x)))
3)
(1) The value to be passed to the parameter y is 21 .
(2) The final output of the piece of code is 26 .. Ans: (1) 21
(2) 26
◉ Given this Scheme procedure:
(define foo (lambda (x)
(if (= x 0)
1
2026 QUESTIONS WITH ANSWERS FULL
SOLUTION.
◉ 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.
◉ 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)
(1) The value to be passed to the parameter y is 18 .
(2) The final output of the piece of code is 22 .. Ans: (1) 18
(2) 22
◉ Given the Scheme code, answer the following two questions.
((lambda (x)
((lambda (x y)
(+ x y))
5 (* 7 x)))
3)
(1) The value to be passed to the parameter y is 21 .
(2) The final output of the piece of code is 26 .. Ans: (1) 21
(2) 26
◉ Given this Scheme procedure:
(define foo (lambda (x)
(if (= x 0)
1