Working with Components Flashcards

1
Q

What is the purpose of a class diagram?

A

It provides a logical/static structure of the problem domain being modeled.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why are class diagrams key in UML modeling?

A

They describe systems in terms of the classes in the problem domain.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does creating a logical model involve?

A

Identifying relevant classes and their relationships within the problem domain.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why is identifying classes difficult?

A

It requires skill, experience, domain knowledge, and is an iterative process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the noun search method?

A

A technique that uses nouns in a problem description to identify potential classes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What kinds of nouns indicate possible classes?

A

Structures (hierarchies), actors (people, roles), and real things the system processes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a boundary class?

A

A class representing interactions between the system and external actors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a control class?

A

A class managing the flow of logic and interactions within a use case.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is an entity class?

A

A class that represents real-world objects or concepts with data and behavior.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How is a use case realized in object-oriented design?

A

By identifying boundary, control, and entity classes to model its functionality.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does a collaboration diagram show?

A

How objects interact within a system to fulfill a use case.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What happens in the balance inquiry use case?

A

The user requests their balance, which is calculated from their account and displayed on the screen.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Why is use case realization important?

A

It bridges the gap between requirements and system design using class interactions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does iteration imply in identifying classes?

A

Designers refine the class structure through multiple attempts and feedback.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Why must systems store information about real things?

A

Because these things represent the core data and entities processed by the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do classes relate to actors in a use case?

A

Classes handle roles and interactions represented by actors in system functionality.

17
Q

Why is there no ‘magic formula’ for class identification?

A

Because it depends on the designer’s expertise and the unique characteristics of each domain.

18
Q

What do control classes manage in a use case?

A

They handle logic, sequencing of events, and communication between boundary and entity classes.

19
Q

What is the role of boundary classes in a system?

A

They manage user inputs and outputs, acting as interfaces between users and the system.