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
14
Grade
A+
Uploaded on
06-07-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+

Save




Terms in this set (37)



1. List 5 good coding practices that # Q1
have been mentioned in this course. # 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, # Q2
identify the keys and values. Write mydict = {'Apple' : 3, 'Pear' : 5, 'Banana' : 2}
the command to add the items mydict['Orange'] = 1
'Orange' and 1 to the dictionary. print(mydict.items()) # prints items as list
What does the command print(mydict) # *** whats diff ??? ***
print(mydict.items()) output to the # cannot do this, a dictionary does not have
console? mydict = {'Apple' : 3, 'Pear' append or add
: 5, 'Banana' : 2} # mydict.append("'Orange' : 1")


3. Explain how dictionaries are # Q3
different from lists, and how lists are # dictionaries are a table of key values while a list
different from tuples. # is an ordered collection of items
# lists are mutable, tuples are not

, 4. Identify and explain 3 ways # Q4
strings are similar to lists # are similar bc both are used to store data and
are a collection of items


5. List all of the data types we have # Q5
seen in this course and provide an # integers : 9 : immutable
example of each. Identify which # floating-point : 2.9 : immutable
ones are mutable and which are # tuples/ strings : "" : immutable
immutable. # lists/ dictionaries : [] {} : mutable


6. In your own words, explain the # Q6
difference between the top-down # Top down programming, in simple terms, is
and bottom-up design methods. dividing
Name at least one advantage and # and conquering a problem, Bottum-up
one disadvantage for each. programming is
# used when you're not sure where to start your
code


7. Describe the various components # Q7
of a hierarchy. How can we use one # A hierarchy is an organized structure where
in program design? items are
# ranked based on level of importance. As the
tree
# descends, the tasks become less important.

Written for

Institution
ENGR 102
Course
ENGR 102

Document information

Uploaded on
July 6, 2026
Number of pages
14
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Free
Get access to the full document:
Download

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
lexkamaa39

Get to know the seller

Seller avatar
lexkamaa39 Teachme2-tutor
View profile
Follow You need to be logged in order to follow users or courses
Sold
10
Member since
3 weeks
Number of followers
0
Documents
981
Last sold
1 day ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

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