What do the letters in MoSCoW stand for?
Must, Should, Could, Would or Won't
What is the self keyword for?
it references the specific object being used
Which type of diagram covered in this class depicts the organization of data in a program?
Class Diagram
What are the two parts of a class?
What multiplicity would represent the relationship between a Plant class and a Garden class?
0..* to 1 (many to one)
What are the three components of a user story?
User, feature, justification
How do you create a Jacket object with the attributes blue, denim, M?
obj = Jacket(blue, denim, M)
How is a protected attribute depicted in a class diagram?
A # sign
What is encapsulation?
the bundling of data and methods into a single unit
What type of relationship would be used to connect a Node class and an Graph class?
Is the following a good user story?
As a student, I want an app that helps me study so I can pass my exams
No :(
How do you define the constructor for a Planet class with the attributes name, moons, rings, diameter, mass? Do not initialize attributes.
What type of relationship is depicted with an arrow and a dashed line?
Dependency
What is an abstract class?
A class that will never actually be instantiated
Define the relationship and multiplicity between a recipe and ingredient?
a 1..* to 1 aggregation
Is the following a good user story?
As an administrative user I want to deactivate another user’s account so that they can no longer log in or receive email notifications
Yes :)
How do you declare a Fridge class that inherits from the Appliance class?
class Fridge(Appliance):
What is the difference between aggregation and composition?
Aggregated elements can functionally exist independently; composition elements cannot.
What is the difference between an instance and a class?
A class is the blueprint, an instance is an initialized class object
What is a real-life example of generalization?
Kleenex and Tissue, Band-aid and Bandage, etc.
Is the following a good user story?
As a Manny’s food service customer, I need to save my list so that I can reorder from the list to create more accurate food orders.
Yes :)
How do you set a Parent Class' attributes when creating an instance of the Child Class?
super().__init__()
Which visibility notation indicates that an attribute or operation is accessible from any class?
+ (Public)
When is overriding useful?
When you need to replace a function from the parent class
What type of relationship between Folder and File?
Composition