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
Examen

CSE 101 Exam 1

Puntuación
-
Vendido
-
Páginas
47
Grado
A+
Subido en
27-06-2025
Escrito en
2024/2025

Exam of 47 pages for the course CSE 101 at CSE 101 (CSE 101 Exam 1)

Institución
CSE 101
Grado
CSE 101

Vista previa del contenido

Which of the following is a syntax error?


Give this one a try later!


Forgetting to type a closing quotation mark for a string.




What is the output of the following valid Python code?

,x=8
if x == 3:
print('A')
elif x >= 3:
print('B')
if x <= 8:
print('C')


-C
-B
-AB
-AC
-BC


Give this one a try later!


BC




Consider the following valid Python code fragment:
if x > 4:
if x < 9:
print('W')
else:
print('X')
else:
if x < 9:
print('Y')
else:
print('Z')
For which one of the following ranges of integers would the code print Y?


- 4 through 9 (inclusive)
- any value greater than 4
- any value less than or equal to 4
- 5 through 9 (inclusive)
- any value strictly less than 9

,Give this one a try later!


any value less than or equal to 4




What is the output of the following valid Python code?
x=5
if x >= 4:
print('A')
elif x >= 3:
print('B')
else:
print('C')


-B
-BC
-A
-AB
-AC


Give this one a try later!


A




When iterating over a string, which of the following functions most directly lets you
combine the counter-driven style of for-loop with the for-each style of for-loop?


Give this one a try later!


enumerate

, Think back to the algorithm we implemented in lecture for the Caesar cipher
(encryption) algorithm. We relied on the ord and chr functions, and also on some
facts regarding the Unicode values for letters of the Latin alphabet. With all this in
mind, what is the value of y after the code below has finished executing?
x = ord('B') + 5
y = chr(x)


Give this one a try later!


'G'
B --> 2
2+ 5 = 7
7th letter = G




Suppose a Colab code cell contained only the single line of code shown below.
Assume x and y are variables created and assigned integer values in previous code
cells. What would be printed when the code cell is executed?
x=y


- Either True or False, depending on the particular values of x and y
- The new value of x
- No output
- The previous value of x


Give this one a try later!


No output




What will be the output of the program given below?


a=5

Escuela, estudio y materia

Institución
CSE 101
Grado
CSE 101

Información del documento

Subido en
27 de junio de 2025
Número de páginas
47
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$8.50
Accede al documento completo:

¿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


Documento también disponible en un lote

Conoce al vendedor

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.
codersimon West Virgina University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
796
Miembro desde
3 año
Número de seguidores
478
Documentos
6385
Última venta
1 mes hace
**SOUNDEST LEANING MATERIALS FROM CODERSIMON **

Learning is not attained by chance; it must be sought for with ardor and diligence On this page, you find exams,tests,summaries, notes ,documents, package deals, and flashcards offered by codersimon

3.8

86 reseñas

5
43
4
11
3
16
2
4
1
12

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