Package deal
CSC148 EXAMS BUNDLE||Questions Solved 100% Correct | Verified Answers
CSC148 EXAMS BUNDLE||Questions Solved 100% Correct | Verified Answers
[Show more]CSC148 EXAMS BUNDLE||Questions Solved 100% Correct | Verified Answers
[Show more]composition - ANSWER a relationship between two classes where instances of one class contain 
references to instances of the other 
a 'has a' relationship 
representation invariants - ANSWER a property of the instance attribute that every instance of 
a class must satisfy 
- it is a post condition...
Preview 2 out of 7 pages
Add to cartcomposition - ANSWER a relationship between two classes where instances of one class contain 
references to instances of the other 
a 'has a' relationship 
representation invariants - ANSWER a property of the instance attribute that every instance of 
a class must satisfy 
- it is a post condition...
Parameter - ANSWER Variables in a functions parentheses 
Argument - ANSWER What we put in the parentheses when we are calling a 
function 
Local Variable - ANSWER Variables defined within a function 
Method - ANSWER A function within a class 
Function - ANSWER Not within a class
Preview 1 out of 4 pages
Add to cartParameter - ANSWER Variables in a functions parentheses 
Argument - ANSWER What we put in the parentheses when we are calling a 
function 
Local Variable - ANSWER Variables defined within a function 
Method - ANSWER A function within a class 
Function - ANSWER Not within a class
call stack - ANSWER The call stack is all of the call frames of the currently executing function 
calls 
frame - ANSWER data about a function call (including local variables) 
memory model: on the left - ANSWER call stack, who's frames show the program's variables 
and which ids they store 
memory...
Preview 2 out of 7 pages
Add to cartcall stack - ANSWER The call stack is all of the call frames of the currently executing function 
calls 
frame - ANSWER data about a function call (including local variables) 
memory model: on the left - ANSWER call stack, who's frames show the program's variables 
and which ids they store 
memory...
objects are composed of... - ANSWER id (unique identifier) 
type (determines what functions it can use) 
value (what it "points to") 
variables - ANSWER -have an id → point to an object that stores data 
- variables are NOT objects 
immutable objects - ANSWER -immutable objects value cannot be c...
Preview 2 out of 12 pages
Add to cartobjects are composed of... - ANSWER id (unique identifier) 
type (determines what functions it can use) 
value (what it "points to") 
variables - ANSWER -have an id → point to an object that stores data 
- variables are NOT objects 
immutable objects - ANSWER -immutable objects value cannot be c...
Immutable Types - ANSWER Strings, integers, boolean, tuples 
value stored in an object cant change 
Mutable Types - ANSWER Lists, dictionaries, user defined classes 
ID are changable 
Aliasing - ANSWER A circumstance where two or more variables refer to the same 
object. If you change one, the other...
Preview 1 out of 3 pages
Add to cartImmutable Types - ANSWER Strings, integers, boolean, tuples 
value stored in an object cant change 
Mutable Types - ANSWER Lists, dictionaries, user defined classes 
ID are changable 
Aliasing - ANSWER A circumstance where two or more variables refer to the same 
object. If you change one, the other...
the only mutable types - ANSWER list and dictionaries and user defined classes 
Where is all data stored in? - ANSWER objects that have 3 components -> id, type and value 
What is special about id - ANSWER The id of an object is a unique identifier, meaning that no 
other object has the same iden...
Preview 3 out of 21 pages
Add to cartthe only mutable types - ANSWER list and dictionaries and user defined classes 
Where is all data stored in? - ANSWER objects that have 3 components -> id, type and value 
What is special about id - ANSWER The id of an object is a unique identifier, meaning that no 
other object has the same iden...
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Stuvia is a marketplace, so you are not buying this document from us, but from seller Examsplug. Stuvia facilitates payment to the seller.
No, you only buy these notes for $26.49. You're not tied to anything after your purchase.
4.6 stars on Google & Trustpilot (+1000 reviews)
78112 documents were sold in the last 30 days
Founded in 2010, the go-to place to buy study notes for 14 years now