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 3 out of 24 pages
Exam (elaborations)

CMN 152V ACTUAL FINALS QUESTIONS AND ANSWERS SURE A.pdf

Document preview thumbnail
Preview 3 out of 24 pages

CMN 152V ACTUAL FINALS QUESTIONS AND ANSWERS SURE A.pdf

Content preview

CMN 152V ACTUAL FINALS QUESTIONS AND
ANSWERS SURE A+
✔✔type3 — try itWhat is the type of 0

int
float
str
bool
list - ✔✔int

✔✔booleans1 — try itWhat is the value of: not not False
True
False
not True - ✔✔false

✔✔booleans3 — try itWhich of the following does not equal True

'True'
not False
(not False)
not (not True) - ✔✔'True'

✔✔writing_strings1 — try itIn place of the ..., type 'Hi Python' - ✔✔'Hi Python'

✔✔writing_strings2 — try itIn place of the ..., type a string with the letters of the
alphabet in order, lowercase - ✔✔'abcdefghijklmnopqrstuvwxyz'

✔✔string_length1 — try itWhich string is length 5.

'hey'
'good'

,'five.'
'fifty.' - ✔✔'five.'

✔✔string_length2 — try itWhat is the length of the string 'seventy' - ✔✔7

✔✔string_length3 — try itWhat is the length of the string '' - ✔✔0

✔✔string_length4 — try itWhich string isn't length 1?
'.' # period
'"' # double quote
' ' # one space characters
' ' # two space characters
'1' # one - ✔✔' ' #two space characters

✔✔quote_types1 — try itWhich of these strings will produce an error?
',.;:/?'
'"Harriet", she said"'
"My "happiness""
"I'm, can't"
"I'm" - ✔✔"My, "happiness""

✔✔substrings_in_strings1 — try itWhich of the following is false?
'G' in 'Greetings'
"Greetings" in 'Greetings'
'in' in 'Greetings'
'sing' in 'Greetings'
'reetings' in 'Greetings' - ✔✔'sing' in 'Greetings'

✔✔substrings_in_strings2 — try itWhich of the following is false?
' ' in 'race cars are fast'
'ars a' in 'race cars are fast'
'ace' in 'race cars are fast'
'e cars' in 'race cars are fast'
'e fa' in 'race cars are fast'
'cas a' in 'race cars are fast' - ✔✔'cas a' in 'race cars are fast'

✔✔combining_strings1 — try itWhich of the following has a different output than
print('space ship')?

print('space', 'ship')
print('space' + 'ship')
print('space {}'.format( 'ship' ) )
print('{} {}'.format( 'space', 'ship' ) )
print('space{}ship'.format( ' ' ) ) - ✔✔print('space' + 'ship')

, ✔✔combining_strings2 — try itWhich of the following has a different output than print('"
"')?
print('"', '"')
print('"' + ' "')
print('"' + '"')
print('{}'.format('" "') ) - ✔✔print('"' + '"')

✔✔comparing_things1 — try itSelect the value of the expression
True == True
True
False - ✔✔true

✔✔comparing_things2 — try itSelect the value of the expression
'x' == 'X'
True
False - ✔✔false

✔✔comparing_things3 — try itSelect the value of the expression
5 + 5 == 10
True
False - ✔✔true

✔✔comparing_things4 — try itSelect the value of the expression
'5 + 5' == '10'
True
False - ✔✔false

✔✔comparing_things5 — try itSelect the value of the expression
'5' + '5' == '55'
True
False - ✔✔true

✔✔comparing_things6 — try itSelect the value of the expression
'1' == 1
True
False - ✔✔fasle

✔✔comparing_things7 — try itSelect the value of the expression
1.0 == 1
True
False - ✔✔true

✔✔comparing_things8 — try itSelect the value of the expression

Document information

Uploaded on
August 8, 2026
Number of pages
24
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$18.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

Sold
1
Followers
2
Items
4816
Last sold
2 weeks 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