Class Basics
CRC Basics
System Architecture
Collaboration - CRC
Responsibilities-CRC
100

What are the three main sections of a class in a design class diagram?

Class name, attributes, and operations

100

A Fundamental design principle that describes the degree to which a class is independent.

Cohesion

100

What is the role of a deployment diagram?

To show the physical layout of hardware and software components.

100

What kind of methods would you expect in a Student class in a university system?

Enroll in course, drop course, view transcript

100

It’s good to assign many responsibilities to one class in CRC modeling.

Flase,Responsibilities should be focused to avoid bloated, "God" classes. 

200
This entity is the instantiation of the basic data structure in OOD.
What is an object.
200

What do “+” and “-” mean before attribute or method names in UML

+ for public, - for private

200

In what scenario would cloud-based deployment be recommended?

When scalability, remote access, or cost efficiency is a concern.

200

In CRC, what is a collaborator?

Another class that helps a class fulfill its responsibilities.

200

In the senario of a Social Media PlatformWhat responsibility does the User class have?

Manage user profile, create posts, follow other users, and send messages.

300

This class that is never instantiated directly, only through subclasses

Abstract Class

300

In CRC cards, this section lists the things the class knows or does.

Responsibilities

300

What is encryption used for in system architecture?

To protect data confidentiality during transmission or storage.

300

Who should the Librarian collaborate with to issue a book?

Book, Member, and LoanRecord

300

What responsibility might a Customer class have in an e-commerce system?

Manage personal information, view order history, update preferences.

400

These define the characteristics of a class, such as “name” or “price.”

Attributes

400

What does CRC stand for in object-oriented design?

Class, Responsibility, and Collaboration

400

Why is security considered in architectural design?

To ensure the system protects against unauthorized access and threats.

400

In a hospital system, who should be the collaborator when a Doctor prescribes medication?

Patient, Prescription, and possibly Pharmacy.

400

In CRC modeling, what is the purpose of the Controller class?

To manage the flow of data between the user interface and other system components, typically handling user actions.

500

What is the term for hiding the internal details of how an object works?

encapsulation

500

In CRC, why should responsibilities be evenly distributed among classes?

To avoid “God” classes and promote high cohesion, low coupling.

500

Describe one advantage of a multi-tier architecture.

Improved scalability, separation of concerns, or easier maintenance.

500

In an online shopping system, which class should handle calculating total price: ShoppingCart or Customer?

ShoppingCart – it's responsible for the items and their prices.

500

How does the "Information Expert" principle guide responsibility assignment?

Assign the responsibility to the class that has the necessary information to perform it