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 4 fuera de 72 páginas
Examen

CMN 152V FINAL TEST STUDY GUIDE 2026/2027 COMPLETE QUESTIONS WITH VERIFIED CORRECT ANSWERS || 100% GUARANTEED PASS NEWEST VERSION University Of South Alabama

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

CMN 152V FINAL TEST STUDY GUIDE 2026/2027 COMPLETE QUESTIONS WITH VERIFIED CORRECT ANSWERS || 100% GUARANTEED PASS NEWEST VERSION University Of South Alabama 1. can you add spaces between terms in code with really changing the meaning - ANSWER yes 2. how do u write pi - ANSWER 3. how do you write e - ANSWER math.e 4. how do u have access to a module's functionality (ex. math) - ANSWER import it aka; import math 5. if you dont write print you will only see what when you run code - ANSWER the last output in the block 6. how to print something - ANSWER print( ) 7. how to write a variable - ANSWER x = 6 8. can an _ start a variable - ANSWER yes _x is a valid variable 9. can some names not be variables - ANSWER yes, thinks like math and other variables that have other meanings in python 10. how to find what type something is - ANSWER type ( ) 11. what type is just: 1 - ANSWER intiger int 12. what type is: 1.0 - ANSWER float 13. what type is 3 + 5.0 - ANSWER float 14. list_contents1 — try itWhich option is False? 5 in [2, 3, 4, 5] 5 in [2, 3, 4, 5][0:] 5 in [2, 3, 4, 5][1:] 1 in [2, 3, 4, 5][1:] 5 in [2, 3, 4, 5] + [1] 1 in [2, 3, 4, 5] + [1] - ANSWER 1 in [2, 3, 4, 5][1:] 15. list_contents2 — try itWhich option is True? 1 in 12 1 in [12, 121] 1 in ['1', '12'] 1 in [1, 2, 1, 2, 1] - ANSWER 1 in [1, 2, 1, 2, 1] 16. list_contents3 — try itWhich option is True? 'in' in ['outer', 'outy'] 'in' in ['in'] 'in' in ['inner'] 'in' in ['inner', 'inny'] - ANSWER 'in' in ['in'] 17. list_contents4 — try itWhat is the output of the code below? 'dinosaur' in ['dinosaur'] True False - ANSWER true 18. list_contents5 — try itWhat is the output of the code below? dino' in 'dinosaur' False True - ANSWER true 19. list_contents6 — try itWhat is the output of the code below? 'in' in ['dinosaur'] True False - ANSWER false 20. list_contents7 — try itWhat is the output of the code below? odds = [1, 3, 5, 7, 9] primes = [1, 3, 5, 7, 2] odds = odds[0:4] primes = primes[0:4] primes == odds True False - ANSWER true 21. list_contents8 — try itWhat is the output of the code below? odds = [1, 3, 5, 7, 9] primes = [1, 2, 3, 5, 7] odds = odds[0:1] + [2] + odds[2:4] odds == primes True False - ANSWER false 22. listmerge1 — try it Select the option that correctly characterizes the code below w = [0, 2, 4, 6, 8, 10] y = [0, 1, 4, 9, 16, 25] z = [] for x in y: if not x in w: d( x ) z The code returns all the items in both w and y The code returns all the items in both x and y The code returns all the items in both y and z The code returns all the items in w but not in y The code returns all the items in x but not in z The code returns all the items in y but not in w None of the above - ANSWER The code returns all the items in y but not in w 23. listmerge2 — try it Select the option that correctly characterizes the code below alpha = ['a', 'b', 'c', 'd'] numer = ['1', '2', '3', '4'] for let in alpha: for num in numer: print( num + let ) The code prints 1a, 2b, 3d, 4d The code prints a1, b2, c3, d4 The code prints all combinations of elements in alpha and then numer The code prints all combinations of elements in numer and then alpha None of the above - ANSWER The code prints all combinations of elements in numer and then alpha

Vista previa del contenido

CMN 152V FINAL TEST STUDY GUIDE
2026/2027 COMPLETE QUESTIONS WITH
VERIFIED CORRECT ANSWERS ||
100% GUARANTEED PASS
<NEWEST VERSION>
University Of South Alabama


1. can you add spaces between terms in code with really changing the meaning
- ANSWER ✔ yes


2. how do u write pi - ANSWER ✔ math.pi


3. how do you write e - ANSWER ✔ math.e


4. how do u have access to a module's functionality (ex. math) - ANSWER ✔
import it
aka; import math


5. if you dont write print you will only see what when you run code -
ANSWER ✔ the last output in the block


6. how to print something - ANSWER ✔ print( )


7. how to write a variable - ANSWER ✔ x = 6

,8. can an _ start a variable - ANSWER ✔ yes _x is a valid variable


9. can some names not be variables - ANSWER ✔ yes, thinks like math and
other variables that have other meanings in python


10.how to find what type something is - ANSWER ✔ type ( )


11.what type is just: 1 - ANSWER ✔ intiger
int


12.what type is: 1.0 - ANSWER ✔ float


13.what type is 3 + 5.0 - ANSWER ✔ float


14.list_contents1 — try itWhich option is False?
5 in [2, 3, 4, 5]
5 in [2, 3, 4, 5][0:]
5 in [2, 3, 4, 5][1:]
1 in [2, 3, 4, 5][1:]
5 in [2, 3, 4, 5] + [1]
1 in [2, 3, 4, 5] + [1] - ANSWER ✔ 1 in [2, 3, 4, 5][1:]


15.list_contents2 — try itWhich option is True?
1 in 12
1 in [12, 121]
1 in ['1', '12']
1 in [1, 2, 1, 2, 1] - ANSWER ✔ 1 in [1, 2, 1, 2, 1]

,16.list_contents3 — try itWhich option is True?
'in' in ['outer', 'outy']
'in' in ['in']
'in' in ['inner']
'in' in ['inner', 'inny'] - ANSWER ✔ 'in' in ['in']


17.list_contents4 — try itWhat is the output of the code below?
'dinosaur' in ['dinosaur']
True
False - ANSWER ✔ true


18.list_contents5 — try itWhat is the output of the code below?
dino' in 'dinosaur'
False
True - ANSWER ✔ true


19.list_contents6 — try itWhat is the output of the code below?
'in' in ['dinosaur']
True
False - ANSWER ✔ false


20.list_contents7 — try itWhat is the output of the code below?
odds = [1, 3, 5, 7, 9] primes = [1, 3, 5, 7, 2] odds = odds[0:4] primes =
primes[0:4] primes == odds
True
False - ANSWER ✔ true


21.list_contents8 — try itWhat is the output of the code below?
odds = [1, 3, 5, 7, 9]
primes = [1, 2, 3, 5, 7]

, odds = odds[0:1] + [2] + odds[2:4] odds == primes
True
False - ANSWER ✔ false


22.listmerge1 — try it
Select the option that correctly characterizes the code below
w = [0, 2, 4, 6, 8, 10]
y = [0, 1, 4, 9, 16, 25]
z = []
for x in y:
if not x in w:
z.append( x )
z


The code returns all the items in both w and y
The code returns all the items in both x and y
The code returns all the items in both y and z
The code returns all the items in w but not in y
The code returns all the items in x but not in z
The code returns all the items in y but not in w
None of the above - ANSWER ✔ The code returns all the items in y but not
in w


23.listmerge2 — try it
Select the option that correctly characterizes the code below
alpha = ['a', 'b', 'c', 'd']
numer = ['1', '2', '3', '4']
for let in alpha:
for num in numer:
print( num + let )


The code prints 1a, 2b, 3d, 4d
The code prints a1, b2, c3, d4

Información del documento

Subido en
5 de febrero de 2026
Número de páginas
72
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$15.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.
ProfBenjamin
3.7
(149)
Vendido
730
Seguidores
17
Artículos
3941
Última venta
1 día 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