UPDATED Exam Questions and Verified
Answers (2026/2027) | Graded A+ |
100% Success
A recursive function is a function that calls __________. - Correct Answer -itself
When a recursive function is called the values of its arguments and its return
address are placed in a _______ . - Correct Answer -stack frame
A variable's _________ is that period of time during program execution when the
variable has memory storage associated with it. - Correct Answer -lifetime
Since the typical human brain can only manage about six different concepts or
thoughts at one time functions serve as abstractions by ____________ . - Correct
Answer -hiding complexity
In ____________ we take a list of values and repeatedly apply a function to
accumulate a single data value. - Correct Answer -Reducing
,The scope of a variable name determines the _________ of that variable. - Correct
Answer -visibility
In what way is the recursion approach different from the top-down approach? -
Correct Answer -recursion causes a valuable amount of memory to be consumed
while it is running
The expression list(filter(lambda x: X> 50, [34, 65, 10, 100])) will evaluate to? -
Correct Answer -[65, 100]
The set of variables and the values assigned to those variables is referred to as the
program's _____________. - Correct Answer -namespace
In Python functions can be treated as first class data objects, which means that
_________. - Correct Answer -they can be assigned to variables and they can be
passed as arguments to other functions, returned as the values of other functions,
etc.
To prevent a recursive function from repeating itself infinitely it must contain at
least one _______________________. - Correct Answer -selection statement
, In a program the context that gives a name meaning is called the name's
_______________. - Correct Answer -scope
____________________ variables are introduced in the body of the function and
receive their values as soon as they are introduced. - Correct Answer -temporary
The expression reduce(max, [34, 21, 99, 67, 10]) will evaluate to? - Correct Answer
-99
Functions serve as abstractions that allow us to manage complexity by hiding it in
some manner. The first way that functions serve as abstractions is by
___________ . - Correct Answer -eliminating redundancy
_________ names are introduced by their type and always use an object followed
by a dot and the method name. - Correct Answer -method
Problem decomposition may continue down to lower levels because subproblems
may have more lower level problems to solve. The process of breaking down the
original problem definition into smaller subproblems and then solving them