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

ENGR 102 EXAM 2 EXAM WITH CORRECT ACTUAL QUESTIONS AND CORRECTLY WELL DEFINED ANSWERS LATEST ALREADY GRADED A+

Rating
-
Sold
-
Pages
24
Grade
A+
Uploaded on
17-06-2026
Written in
2025/2026

ENGR 102 EXAM 2 EXAM WITH CORRECT ACTUAL QUESTIONS AND CORRECTLY WELL DEFINED ANSWERS LATEST ALREADY GRADED A+

Institution
ENGR 102
Course
ENGR 102

Content preview

ENGR 102 EXAM 2 EXAM WITH CORRECT
ACTUAL QUESTIONS AND CORRECTLY
WELL DEFINED ANSWERS LATEST
ALREADY GRADED A+



mylist = [5, 3, 7, 9, 1, 2]
mylist.pop()
mylist.insert(2, 4)
mylist.sort()
for i in mylist:
print(i, end = ' ') - ANSWERS-# Q32
mylist = [5, 3, 7, 9, 1, 2]
mylist.pop()
mylist.insert(2, 4)
mylist.sort()
for i in mylist:
print(i, end = ' ')
# output
# 1, 2, 3, 5, 7, 9

,number = input("Enter a number: ") # assume the user
enters 5.0
try: x = int(number)
print("x is the integer", x)
except: x = float(number)
print("x is the float", x) - ANSWERS-# Q33
number = input("Enter a number: ") # assume the user
enters 5.0
try:
x = int(number)
print("x is the integer", x)
except:
x = float(number)
print("x is the float", x)
# output
# ** user enters 5
# x is the integer 5
# ** user enters 5.9
# x is the float 5.9
# if program has decimal will print as float

, List 5 good coding practices that have been mentioned in
this course. - ANSWERS-# Q1
# always comment your code
# keep your code simple
# test your code often, work through it in groups
# be consistent with your code
# use good identifying variables
# write as few of lines as possible


2. In the following dictionary, identify the keys and values.
Write the command to add the items 'Orange' and 1 to the
dictionary. What does the command print(mydict.items())
output to the console? mydict = {'Apple' : 3, 'Pear' : 5,
'Banana' : 2} - ANSWERS-# Q2
mydict = {'Apple' : 3, 'Pear' : 5, 'Banana' : 2}
mydict['Orange'] = 1
print(mydict.items()) # prints items as list
print(mydict) # **** whats diff ??? ****
# cannot do this, a dictionary does not have append or add
# mydict.append("'Orange' : 1")

Written for

Institution
ENGR 102
Course
ENGR 102

Document information

Uploaded on
June 17, 2026
Number of pages
24
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$16.49
Get access to the full document:

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

Get to know the seller

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.
NurseLNJ Teachme2-tutor
Follow You need to be logged in order to follow users or courses
Sold
451
Member since
2 year
Number of followers
117
Documents
8407
Last sold
14 hours ago

Welcome To my Store My Goal is to help you achieve your desired grades by providing credible study materials I\'m happy to help you with quality documents On this page you will find quality study guides,Exams assignments, Research papers and Test Banks all verified correct . you\'ll find past and recent revised and verified study materials . Stay here and You\'ll find everything you need to pass !!! . I always ensure my documents are of high standards I am always available to assist 24/7 and answer any queries you may have . Be assured to get good grades and always leave a review after a purchase Refer a friend SUCCESS!!!!

Read more Read less
4.8

477 reviews

5
433
4
6
3
20
2
3
1
15

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