User Stories
Python Syntax
UML Notation
Classes
Relationships
100

What do the letters in MoSCoW stand for?

Must, Should, Could, Would or Won't

100

What is the self keyword for?

it references the specific object being used

100

Which type of diagram covered in this class depicts the organization of data in a program?

Class Diagram

100

What are the two parts of a class?

Attributes and Methods
100

What multiplicity would represent the relationship between a Plant class and a Garden class?

0..* to 1 (many to one)

200

What are the three components of a user story?

User, feature, justification

200

How do you create a Jacket object with the attributes blue, denim, M?

obj = Jacket(blue, denim, M)

200

How is a protected attribute depicted in a class diagram?

A # sign

200

What is encapsulation?

the bundling of data and methods into a single unit

200

What type of relationship would be used to connect a Node class and an Graph class?

Composition
300

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 :(

300

How do you define the constructor for a Planet class with the attributes name, moons, rings, diameter, mass? Do not initialize attributes.

def __init__(self, name, moons, rings, diameter):
300

What type of relationship is depicted with an arrow and a dashed line?

Dependency

300

What is an abstract class?

A class that will never actually be instantiated

300

Define the relationship and multiplicity between a recipe and ingredient?

a 1..* to 1 aggregation

400

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 :)

400

How do you declare a Fridge class that inherits from the Appliance class?

class Fridge(Appliance):

400

What is the difference between aggregation and composition?

Aggregated elements can functionally exist independently; composition elements cannot.

400

What is the difference between an instance and a class?

A class is the blueprint, an instance is an initialized class object

400

What is a real-life example of generalization?

Kleenex and Tissue, Band-aid and Bandage, etc.

500

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 :)

500

How do you set a Parent Class' attributes when creating an instance of the Child Class?

super().__init__()

500

Which visibility notation indicates that an attribute or operation is accessible from any class?

+ (Public)

500

When is overriding useful?

When you need to replace a function from the parent class

500

What type of relationship between Folder and File?

Composition

M
e
n
u