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 2 out of 5 pages
Exam (elaborations)

Engineering 102 Final Exam questions and Answers 100% Solved

Document preview thumbnail
Preview 2 out of 5 pages

Engineering 102 Final Exam questions and Answers 100% Solved

Content preview

Engineering 102 Final Exam questions
and Answers 100% Solved
import statements are case sensitive - ✔✔true import abc is not equal to import AbC




importing py files requires import filename.py - ✔✔false, it would just be import filename




benefits of numpy (2) - ✔✔1) more mathematical support (more functions) 2) faster operations




shape of array - ✔✔a tuple of the lengths of the arrays dimensions (rows by columns, in a
sense)




size of array - ✔✔number of elements in an array




how to import matplotlib for graphing - ✔✔import matplotlib.pyplot as plt




Individual elements are often called "nodes", true or false - ✔✔true




In computing, a hierarchy is often called "a tree", true or false - ✔✔true




In computing, the base of a hierarchy are often called a "leaf", true or false - ✔✔false, they are
called...



Hierarchies capture all relationships and it is always clear how things should be separated, true
or false - ✔✔false
Top-down approach should always be my first approach to a program, true or false - ✔✔true

, In top-down, continue to break down the problem into smaller steps until implementing a
concept will take just a few lines of code, true or false - ✔✔true




A function body can be thought of as its own, separate program, true or false? - ✔✔true



What is the output of the following code?




def myfunc(): a = 3 print(a,end='') a = 7 print(a, end='') myfunc() print(a, end='') - ✔✔7.3.7.




What objects are mutable? - ✔✔lists and dictionaries




what objects are immutable? - ✔✔integers, floats, complex numbers, Booleans, strings, tuples

return statements can return value - ✔✔only one




special elements which allow return to be "multiple" elements - ✔✔tuples and lists




a function with no return value returns... - ✔✔"None"




def user_function(number + 5), valid or invalid? - ✔✔invalid




parameters = - ✔✔= variables

Document information

Uploaded on
October 21, 2024
Number of pages
5
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$12.49

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.
KeithAndrews
3.0
(28)
Sold
126
Followers
5
Items
14215
Last sold
1 week 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