Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 72 pages
Exam (elaborations)

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
Preview 4 out of 72 pages

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

Content preview

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

Document information

Uploaded on
February 5, 2026
Number of pages
72
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$15.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ProfBenjamin
3.7
(149)
Sold
730
Followers
17
Items
3941
Last sold
1 day ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions