• ¿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 2 fuera de 11 páginas
Examen

Compsci 101 Cengage Quizzes Final Exam Questions and Correct Answers/ Latest Update / Already Graded

Document preview thumbnail
Vista previa 2 fuera de 11 páginas

Which function returns a list of the named resources (functions and variables) in its argument? Ans: dir The expression 2 ** 3 ** 2 evaluates to which of the following values? Ans: 512 The expression round(23.67) evaluates to which of the following values? Ans: 24 What must a programmer use to test a program? Ans: A reasonable set of legitimate inputs What must you use to create a multi-line string? Ans: -A single pair of 3 consecutive double quotation marks -Embedded newline characters Page | 2 Which statement imports the functions sqrt and log from the math module? Ans: from math import sqrt, log What is used to begin an end-of-line comment? Ans: # symbol Which of the following lists of operators is ordered by decreasing precedence? Ans: **,*,+ Assume that the variable name has the value 33. What is the value of name after the assignment name = name * 2 executes? Ans: 66 interface What does a programmer do during the analysis phase of software development? Ans: Decides what the program will do and determines its user All rights reserved © 2025/ 2026 | Page | 3 Consider the following code segment: x = 5 y = 4 if x y: print( y ) else: print( x ) What value does this code segment print? Ans: 4 A Boolean expression using the and operator returns True when Ans: both operands are true How many times does a loop with the header for count in range (10): execute the statement

Vista previa del contenido

Page |1


Compsci 101 Cengage Quizzes Final Exam
Questions and Correct Answers/ Latest
Update / Already Graded
Which function returns a list of the named resources (functions and
variables) in its argument?

Ans: dir


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

Ans: 512


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

Ans: 24


What must a programmer use to test a program?

Ans: A reasonable set of legitimate inputs


What must you use to create a multi-line string?

Ans: -A single pair of 3 consecutive double quotation marks
-Embedded newline characters

All rights reserved © 2025/ 2026 |

, Page |2



Which statement imports the functions sqrt and log from the math
module?

Ans: from math import sqrt, log


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

Ans: # symbol


Which of the following lists of operators is ordered by decreasing
precedence?

Ans: **,*,+


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

Ans: 66


What does a programmer do during the analysis phase of software
development?

Ans: Decides what the program will do and determines its user
interface


All rights reserved © 2025/ 2026 |

Información del documento

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

¿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
Exampromax
5.0
(1)
Vendido
5
Seguidores
0
Artículos
1135
Última venta
2 meses 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