• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 1 fuera de 4 páginas
Examen

Compsci 101 Cengage Quizzes Final Exam Questions with Correct Answers Latest Update 2025/2026

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

Compsci 101 Cengage Quizzes Final Exam Questions with Correct Answers Latest Update 2025/2026 Which function returns a list of the named resources (functions and variables) in its argument? - Answers dir The expression 2 ** 3 ** 2 evaluates to which of the following values? - Answers 512 The expression round(23.67) evaluates to which of the following values? - Answers 24 What must a programmer use to test a program? - Answers A reasonable set of legitimate inputs What must you use to create a multi-line string? - Answers -A single pair of 3 consecutive double quotation marks -Embedded newline characters Which statement imports the functions sqrt and log from the math module? - Answers from math import sqrt, log What is used to begin an end-of-line comment? - Answers # symbol Which of the following lists of operators is ordered by decreasing precedence? - Answers **,*,+ Assume that the variable name has the value 33. What is the value of name after the assignment name = name * 2 executes? - Answers 66 What does a programmer do during the analysis phase of software development? - Answers Decides what the program will do and determines its user interface Consider the following code segment: x = 5 y = 4 if x y: print( y ) else: print( x ) What value does this code segment print? - Answers 4 A Boolean expression using the and operator returns True when - Answers both operands are true How many times does a loop with the header for count in range (10): execute the statements in its body? - Answers 10 times Consider the following code segment: theSum = 0.0 while True: number = input("Enter a number: ") if number == ": break theSum += float(number) How many iterations does this loop perform? - Answers At least one What is the output of the loop for count in range(5): print(count, end = " ")? - Answers 0 1 2 3 4 A for loop is convenient for - Answers -Counting through a sequence of numbers -Running a set of statements a predictable number of times Consider the following code segment: count = 1 while count = 10: print(count, end = " ") Which of the following describes the error in this code? - Answers The loop is infinite Consider the following code segment: count = 5 while count 1: print(count, end = " ") count -= 1 What is the output produced by this code? - Answers 5 4 3 2 When the function range receives two arguments, what does the second argument specify? - Answers The last value of a sequence of integers minus 1

Vista previa del contenido

Compsci 101 Cengage Quizzes Final Exam Questions with Correct Answers Latest Update
2025/2026

Which function returns a list of the named resources (functions and variables) in its argument? -
Answers dir

The expression 2 ** 3 ** 2 evaluates to which of the following values? - Answers 512

The expression round(23.67) evaluates to which of the following values? - Answers 24

What must a programmer use to test a program? - Answers A reasonable set of legitimate
inputs

What must you use to create a multi-line string? - Answers -A single pair of 3 consecutive
double quotation marks

-Embedded newline characters

Which statement imports the functions sqrt and log from the math module? - Answers from
math import sqrt, log

What is used to begin an end-of-line comment? - Answers # symbol

Which of the following lists of operators is ordered by decreasing precedence? - Answers **,*,+

Assume that the variable name has the value 33. What is the value of name after the
assignment name = name * 2 executes? - Answers 66

What does a programmer do during the analysis phase of software development? - Answers
Decides what the program will do and determines its user interface

Consider the following code segment:

x=5

y=4

if x > y:

print( y )

else:

print( x )

What value does this code segment print? - Answers 4

A Boolean expression using the and operator returns True when - Answers both operands are
true

Información del documento

Subido en
11 de diciembre de 2025
Número de páginas
4
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$11.89

¿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.
joshuawesonga22
3.5
(14)
Vendido
130
Seguidores
2
Artículos
15395
Última venta
4 días 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