100% de satisfacción garantizada Inmediatamente disponible después del pago Leer en línea o como PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

ENGR 102 MIDTERM STUDY GUIDE QUESTIONS AND CORRECT ANSWERS

Puntuación
-
Vendido
-
Páginas
24
Grado
A+
Subido en
21-03-2026
Escrito en
2025/2026

ENGR 102 MIDTERM STUDY GUIDE QUESTIONS AND CORRECT ANSWERS

Institución
ENGR 102
Grado
ENGR 102

Vista previa del contenido

What would you have to enter as an input for the following code to exit the loop?


answer = "N"
while answer != "Y":
print("are we there yet?")
answer = input("Please respond Y or N")
print("Yay! We are there!")


Give this one a try later!


Y




x = []
for i in range(2):
x.append(i)
x += x

,print(x)


Give this one a try later!


Before Loop: x = []
After Iteration 1: i = 0, x = [0, 0]
After Iteration 2: i = 1, x = [0, 0, 1, 0, 0, 1]




int('3') # Line 1
float('3.14') # Line 2
float('2') # Line 3
int('2.5') # Line 4


Give this one a try later!


Line 4, you cannot convert a float in a string into an integer




how_many=10
if how_many == 1:
print("Single")
elif how_many == 2:
print("Couple")
elif how_many < 5:
print("Few")
elif how_many < 10:
print("Several")
elif how_many > 10:
print("Lots")
else:
print("None")


Give this one a try later!

, None




What is the output of the following program?


language = ['P', 'y', 't', 'h', 'o', 'n']
print(language[:-4])


Give this one a try later!


['P', 'y']




What is the value stored in variable X after the following python statements are
executed?



X=2


Y=5


Z = X*Y


X = X*Z - X


Give this one a try later!


18




What is the output of the following code?
a=10

Escuela, estudio y materia

Institución
ENGR 102
Grado
ENGR 102

Información del documento

Subido en
21 de marzo de 2026
Número de páginas
24
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$10.50
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Leer en línea o como PDF
No estas atado a nada

Conoce al vendedor
Seller avatar
BESTSOLUTIONEXAMS
1.0
(1)

Documento también disponible en un lote

Conoce al vendedor

Seller avatar
BESTSOLUTIONEXAMS Boston University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
6
Miembro desde
1 mes
Número de seguidores
0
Documentos
3078
Última venta
1 semana hace

1.0

1 reseñas

5
0
4
0
3
0
2
0
1
1

Documentos populares

Recientemente visto por ti

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