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 31 pages
Exam (elaborations)

ENGR 102 MIDTERM REVIEW QUESTIONS WITH CORRECT ANSWERS

Document preview thumbnail
Preview 4 out of 31 pages

ENGR 102 MIDTERM REVIEW QUESTIONS WITH CORRECT ANSWERS

Content preview

Complete this statement to increment y:


y = _____


Give this one a try later!


y+1




color = 'purple'
my_slice = color[0:4:3]
print(my_slice)


Give this one a try later!


pp

,In what order are the operators evaluated?
w + 3 != y - 1 and x


Give this one a try later!


+, -, !=, and




print(f'{9.1357:.3f}')?


Give this one a try later!


9.136




person = 'Piper'


print(person[-1])


Give this one a try later!


r




txt = "apple#banana#cherry"


x = txt.split("#", 1)


print(x)


Give this one a try later!

, ['apple', 'banana#cherry']




Is this valid or invalid variable assignment:


x+y=x


Give this one a try later!


invalid




T or F: [1, 2, 3] >= ['1', '2', '3',]


Give this one a try later!


False, cannot compare strings to integers




print() to output two digits after the decimal point?


print(f'{(7..0)_____)


Give this one a try later!


:.2f}'

, x = ord('a')


print(x)


Give this one a try later!


97




ord()


Give this one a try later!


converts a character into an integer




T or F:-user_val turns user_val negative


Give this one a try later!


True




number = 44
print(f'{number:e}')


Give this one a try later!

Document information

Uploaded on
April 21, 2026
Number of pages
31
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$10.50

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
EXAMROOM
5.0
(1)
Sold
9
Followers
0
Items
3095
Last sold
2 days 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