CSCE 4430 exam 2 Questions and
Answers Graded A+
Functional programming - Correct answer-mirrors mathematical functions
domain = input, range = output
referential transparency - Correct answer-a function's result depends only upon the
values of its parameters
function is total when... - Correct answer-if it is defined for all vales of its domain
for example, the square function
lambda expression - Correct answer-A particular way to define a function.
Describes nameless functions.
beta reduction - Correct answer-the process of evaluating a lambda expression
redex - Correct answer-lambda expression that may be reduced
normal form - Correct answer-a lambda expression which may not be further
reduced (has no redexes)
©COPYRIGHT 2025, ALL RIGHTS RESERVED 1
, Functional Form - Correct answer-a high-order function (or functional form) is one
that either takes functions as parameters or yields a function as its result, or both
Lazy evaluation - Correct answer-delaying argument evaluation in a function call
until the argument is needed
-only compute those values that are necessary. Avoids repeated values
advantage = flexibility
Eager evaluation - Correct answer-evaluating arguments at the beginning of the
call
advantage = efficiency
In functional programming, functions have the same status as variables....they are
_______ - Correct answer-first class entities.
functional form - Correct answer-a function that operates on other functions
LISP - Correct answer-acronym for LIST Processor
©COPYRIGHT 2025, ALL RIGHTS RESERVED 2
Answers Graded A+
Functional programming - Correct answer-mirrors mathematical functions
domain = input, range = output
referential transparency - Correct answer-a function's result depends only upon the
values of its parameters
function is total when... - Correct answer-if it is defined for all vales of its domain
for example, the square function
lambda expression - Correct answer-A particular way to define a function.
Describes nameless functions.
beta reduction - Correct answer-the process of evaluating a lambda expression
redex - Correct answer-lambda expression that may be reduced
normal form - Correct answer-a lambda expression which may not be further
reduced (has no redexes)
©COPYRIGHT 2025, ALL RIGHTS RESERVED 1
, Functional Form - Correct answer-a high-order function (or functional form) is one
that either takes functions as parameters or yields a function as its result, or both
Lazy evaluation - Correct answer-delaying argument evaluation in a function call
until the argument is needed
-only compute those values that are necessary. Avoids repeated values
advantage = flexibility
Eager evaluation - Correct answer-evaluating arguments at the beginning of the
call
advantage = efficiency
In functional programming, functions have the same status as variables....they are
_______ - Correct answer-first class entities.
functional form - Correct answer-a function that operates on other functions
LISP - Correct answer-acronym for LIST Processor
©COPYRIGHT 2025, ALL RIGHTS RESERVED 2