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 1 fuera de 3 páginas
Examen

CNIT 155 EXAM 1 REVIEW QUESTIONS

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

CNIT 155 EXAM 1 REVIEW QUESTIONS

Vista previa del contenido

CNIT 155 EXAM 1 REVIEW QUESTIONS


While loops are pretest loops (T/F) - Answers -True

Computers can create true random numbers (T/F) - Answers -False

sum_total is a legal python identifier (T/F) - Answers -True

In python, the division operator (/) gives a float result, even if both of the numbers are
integers (T/F) - Answers -True

The input function returns a Boolean if the user types in True (T/F) - Answers -True

String can be used as a sequence in a for loop (T/F) - Answers -True

The int function can be used to convert a string of digits into an integer (T/F) - Answers
-True

If you enter a bunch of letters in response to the input the function, the input function
returns a string (T/F) - Answers -True

in is a reserved word in Python (T/F) - Answers -True

if is a legal Python identifier (T/F) - Answers -False

Which of the following is an example of De Morgan's Law? - Answers -Not (not A or not
B) = A and B

What is printed by the last line of the following code:
x = 10
y = input("enter a letter:")
print(y)
Assume the user enters the letter z in response to the prompt. - Answers -nothing, an
error occurs

Which character starts a comment in a Python program? - Answers -#

Which of the following range function will result in a for loop counting backwards? -
Answers -range(3, 0, -1)

What is printed when the following code is executed?
for university in ('PU', 'IU', 'Butler')
print(university, "is a university") - Answers -PU is a university
IU is a university

Información del documento

Subido en
24 de enero de 2026
Número de páginas
3
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$11.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.
GEEKA
3.8
(360)
Vendido
2132
Seguidores
1446
Artículos
57748
Última venta
1 hora 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