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 4 fuera de 37 páginas
Examen

INTRODUCTION TO PYTHON PROGRAMMING AND DATA STRUCTURES COMPREHENSIVE EXAMINATION TEST COMPLETE QUESTIONS AND CORRECT ANSWERS

Document preview thumbnail
Vista previa 4 fuera de 37 páginas

INTRODUCTION TO PYTHON PROGRAMMING AND DATA STRUCTURES COMPREHENSIVE EXAMINATION TEST COMPLETE QUESTIONS AND CORRECT ANSWERS

Vista previa del contenido

INTRODUCTION TO PYTHON
PROGRAMMING AND DATA STRUCTURES
COMPREHENSIVE EXAMINATION TEST
COMPLETE QUESTIONS AND CORRECT
ANSWERS

●● The first line of a function definition is known as the .
1. body
2. introduction
3. initialization
4. header
Answer: D


●● You ____ a function to execute it.
1. define
2. call
3. import
4. export
Answer: B


●● A ____ is a variable that is created inside a function.

,1. global variable
2. local variable
3. hidden variable
4. none of the above; you cannot create a variable inside a function
Answer: B


●● A(n) _____ is the part of a program in which a variable may be
accessed.
1. declaration space
2. area of visibility
3. scope
4. mode
Answer: C


●● A(n) _____ is a piece of data that is sent into a function.
1. argument
2. parameter
3. header
4. packet
Answer: A


●● A(n) ____ is a special variable that receives a piece of data when a
function is called.

,1. argument
2. parameter
3. header
4. packet
Answer: B


●● A variable that is visible to every function in a program file is a .
1. local variable
2. universal variable
3. program-wide variable
4. global variable
Answer: D


●● When possible, you should avoid using _____ variables in a
program.
1. local
2. global
3. reference
4. parameter
Answer: B


●● This is a prewritten function that is built into a programming
language.

, 1. standard function
2. library function
3. custom function
4. cafeteria function
Answer: B


●● This standard library function returns a random integer within a
specified range of values.
1. random
2. randint
3. random_integer
4. uniform
Answer: B


●● This statement causes a function to end and sends a value back to the
part of the program that
called the function.
1. end
2. send
3. exit
4. return
Answer: D

Información del documento

Subido en
12 de agosto de 2026
Número de páginas
37
Escrito en
2026/2027
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.
GradeGalaxy
4.4
(9)
Vendido
146
Seguidores
4
Artículos
49585
Última venta
3 horas 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