Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 3 fuera de 16 páginas
Examen

COSC 1436 Test 2 Review Latest 2026 UPDATED Exam Questions and Verified Answers (2026/2027) | Graded A+ | 100% Success

Document preview thumbnail
Vista previa 3 fuera de 16 páginas

COSC 1436 Test 2 Review Latest 2026 UPDATED Exam Questions and Verified Answers (2026/2027) | Graded A+ | 100% Success

Vista previa del contenido

COSC 1436 Test 2 Review Latest 2026
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

Información del documento

Subido en
10 de marzo de 2026
Número de páginas
16
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$15.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Examchemist
4.3
(3)
Vendido
20
Seguidores
0
Artículos
3300
Última venta
2 semanas hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes