What are the three main sections of a class in a design class diagram?
Class name, attributes, and operations
A Fundamental design principle that describes the degree to which a class is independent.
Cohesion
What is the role of a deployment diagram?
To show the physical layout of hardware and software components.
What kind of methods would you expect in a Student class in a university system?
Enroll in course, drop course, view transcript
It’s good to assign many responsibilities to one class in CRC modeling.
Flase,Responsibilities should be focused to avoid bloated, "God" classes.
What do “+” and “-” mean before attribute or method names in UML
+ for public, - for private
In what scenario would cloud-based deployment be recommended?
When scalability, remote access, or cost efficiency is a concern.
In CRC, what is a collaborator?
Another class that helps a class fulfill its responsibilities.
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.
This class that is never instantiated directly, only through subclasses
Abstract Class
In CRC cards, this section lists the things the class knows or does.
Responsibilities
What is encryption used for in system architecture?
To protect data confidentiality during transmission or storage.
Who should the Librarian collaborate with to issue a book?
Book, Member, and LoanRecord
What responsibility might a Customer class have in an e-commerce system?
Manage personal information, view order history, update preferences.
These define the characteristics of a class, such as “name” or “price.”
Attributes
What does CRC stand for in object-oriented design?
Class, Responsibility, and Collaboration
Why is security considered in architectural design?
To ensure the system protects against unauthorized access and threats.
In a hospital system, who should be the collaborator when a Doctor prescribes medication?
Patient, Prescription, and possibly Pharmacy.
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.
What is the term for hiding the internal details of how an object works?
encapsulation
In CRC, why should responsibilities be evenly distributed among classes?
To avoid “God” classes and promote high cohesion, low coupling.
Describe one advantage of a multi-tier architecture.
Improved scalability, separation of concerns, or easier maintenance.
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.
How does the "Information Expert" principle guide responsibility assignment?
Assign the responsibility to the class that has the necessary information to perform it