Week 7 Class Diagrams Flashcards

1
Q

Domain models are ____

solution-independent

platform independent

platform specific

A

solution independent

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

desgin models are ____

solution-independent

platform independent

platform specific

A

platform independent

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

implementation models are ____

solution-independent

platform independent

platform specific

A

platform specific

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

What are domain models

A

solution independent descriptions of a problem domain

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

what are design models

A

platform independent which model different solutions in design (design choices)

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

what are implentation models

A

once you have chose a design, different ways of implenting that design

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

what is the heirarchy of domain models, design models, and implentation models

A

One domain model

Many diff design models which are seperate design choices

For each design model, different ways of implementing

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

What phase and workflow of RUP are class models done in?

A

Phase: Elaboration

Worflow: Requirements

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

What do class diagram show

A

Structure of the system at rest (static)

  • things in the system and how theyre described and inter-related
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are class diagrams used in requirements and analysis to show

A

the problem domain structure

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

what are 2 types of class diagrams

A

domain class diagram

design class diagram

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

What are class diagrams used in design to show

A

solution structure

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

what is a class diagram in design called

A

design class diagram

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

what is a class diagram in requirements modeling and analysis called

A

conceptual model

or

domain model

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

is this a Conceptual (Domain) class or a Design class

A

Conceptual (domain)

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

is this a Conceptual (Domain) class or a Design class

A

Design class

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

what is camelback notation

A

getAttribute()

notice capitalization

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

When do boxes not have a one to many (or something like that) on their associations

A

When it is a Generalization/Specialization, like this

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

on a link between 2 boxes, what is the notation for generalization/specialization

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

what does 0..1 mean

A

Optional 1

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

what does 1..1 mean or just 1

A

Mandatory 1

22
Q

what does 0..* mean (same as 0..n or *)

A

Optional many

23
Q

what does 1..* mean (same as 1..n)

A

mandatory many

24
Q

what does this relationship in english mean

A

A course section is for exactly one course

A course has 0 to many course sections

25
Q

what is the application box called?

A

Association class

26
Q

how is Object oriented inheiritance modeled

A

With generalization/specialization heiarcy.

No multiplicities

Arrow w/ closed arrowhead pointing to superclass

27
Q

how is bidirectional association modeled with symbols

A

solid line w/ no arrowhead

28
Q

how is bidirectional association modeled with multiplicities

A

mutliplicities on both ends of line

29
Q

how is bidirectional association labeled in a model

A

with a single verb phrase or two roles names

30
Q

when is an association class needed

A

if association is many to many AND we need to keep data about the association

31
Q

What is aggregation

A

Whole-part relationship

32
Q

what object is aggregation modeled with on the diagram

A

Diamond on the aggregate side of the relationship

33
Q

do aggregations have labels and multiplicities

A

no labels

yes multiplicities are needed (at least on component side, but can be on both)

34
Q

what is composition

A

strong form of aggregation

35
Q

How many aggregate objects can the component object be a part of

A

one

36
Q

Does the component object exist if the aggregate object is deleted

A

no

37
Q

what happens when an aggregate is deleted

A

all the components must be deleted

38
Q

can the component exist outside of the aggregate

A

no

39
Q

what is this an example of

A

composition

40
Q

When turning use case diagrams into a class diagram, when do you turn an actor into a class?

A

if the sys needs to track info about the actor

41
Q

in class diagrams, can multiple roles(actors) be captured by one class?

A

yes

42
Q

When turning use case diagrams into a class diagram, when do you turn a direct object in usecase name into a class, what do you look for

A
43
Q

What are possible classes from this

A
44
Q

When creating class diagrams, what do verbs in usecase names indicate

A

Candidate behaviors

45
Q

When creating class diagrams, when do verbs in usecase names not indicate candidate behaviors

A

the verb is “view” or “get”

or associations

or values of an attribute

or if translated into a noun, a class

46
Q

When creating class diagrams, what can basic flow of events and alternate flows help you determine

A

clues about attributes and behavior

47
Q

what are some behaviors of classes in this?

A
48
Q

What do business forms do?

A

capture info about a business transaction or event

49
Q

should classes have the word “form” in them

A

no

50
Q

does a business transaction(form) correspond to one or many classes in a class diagram?

A

one or many

51
Q

If your system generates a report, when does it need a corresponding class?

A

if you need to store data about the report

eg. date, pdf_file, requester

52
Q
A