Photo 121212
Photo 121212
A. Groups can only consist of persons, they cannot comprise of other groups.
C. A participant that has been assigned to an appointment can be group and person at the
same time.
D. One group can consist of several persons.
B. x():void
C. x(void)
D. y():int
A. If an object can only have one out of several associations, this may be modeled with a
{xor} relationship
B. You can specify the names of the roles the classes play in the relationship on the
association ends
C. A class must never have a relationship with itself
B. C
C. D
D. B
A. One tenant can rent two flats with one leasing contract.
B. One flat can be rented by multiple tenants with the same leasing contract.
C. One tenant can rent multiple flats with different leasing contracts.
D. One flat can be rented by multiple tenants with different leasing contracts.
B. D
C. B
D. A
C. A or B can execute Z.
D. A and B execute Y together.
How do you model the following situation with a UML class diagram: One team may consist of
several other teams.
A. C
B. B
C. A
D. D
D. B inherits all relationships from A.
C. One tenant can rent multiple flats with different leasing contracts.
D. One tenant can rent the same flat several times with different leasing contracts.
A. Use cases provide the basis of communication between sponsors and developers in
planning phase
B. Use cases description provides a good source to identify domain concepts
C. A fully-dressed use case should include both "whats" and "hows" so that they are ready
for "realization"
D. A use case is an interaction between a user and a system
C. a use case captures some user-visible and non-visible functions
A. ... A can extend B.
A. D
B. A
C. B
D. C
a) Groups of classes
A. a, c and d
B. a, b, c and d
C. a and b
D. a, b and c
C.
B is part of A.
D. If an instance of A is deleted, the contained instances of B are not affected.
E. A is part of B.
You are given the following clipping of a UML class diagram. Which of the following statements are
true?
B. A participant that has been assigned to an appointment can be group and person at the
same time.
C. If an appointment is deleted all references linked with it are deleted as well.
D. If a group is deleted all persons that are in that group are deleted as well.
How do you model the following situation with a UML class diagram:
One team may consist of several other teams.
A. A
B. B
C. C
D. D
B. C
C. A
D. B
A. b → c → a → a → b → c → d
B. a → b → c → d
C. d → a → b → c
D. b → a → c → d
B. C
C. B
D. A
D. .... the chronological process of one object is modeled.
A. D
B. C
C. B
D. A
B. 12
C. 25
D. 13
A. C
B. A
C. B
D. D
B. D
C. B
D. A
A. function calls
B. types
C. functions
D. variables
A. B
B. A
C. C
D. D
D. D
A. a, b and d
B. a and b
C. a and c
D. a, b and c
A. One object of D may be associated with multiple objects of C.
B. Maintaining different models for different perspectives will run into a risk of inconsistency
among models.
C. As models are refined, it is acceptable to use the same set of class diagrams for different
perspectives: conceptual, specification and implementation.
D. All of the above.
D. a use case captures some user-visible and non-visible functions
B. vertical: time axis / horizontal: roles
C. other answer
A. Use cases provide the basis of communication between sponsors and developers in
planning phase
B. A fully-dressed use case should include both "whats" and "hows" so that they are ready
for "realization"
C. Use case diagrams are the primary tool to document requirements
A. Association
B. Composition
C. Realization
D. Aggregation
A. A
B. B
C. C
D. D
A. They are good to look at behavior of a single object across many use cases
B. When you want to look at the behavior of several objects within a single use case or
several use cases
C. All of the above
D. They are good at showing collaborations among objects; they are not so good at
conditions and looping
B. UML use case diagrams are designed to replace textual description since a picture is
better than a thousand words
C. a use case must be initiated by an actor
Thoát
lOMoARcPSD|38004664
Nhập môn công nghệ phần mềm (Trường Đại học Bách khoa Hà Nội)
LOGIN HELP
UML Quiz
Quiz Score
You have solved Class diagram with 59 Questions.
0.00% Questions were answered correct.
Get some feedback by viewing each Question.
A small filled triangle near the association name to show in which way to
"read" the name.
Name
enumeration
elearning.uml.ac.at/submitQuiz 2/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
... you have to set the cardinality of one class to one and determine the
cardinality of the other two classes.
... you can proceed as if it was a binary association, determining the
cardinalities in pairs.
elearning.uml.ac.at/submitQuiz 3/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
elearning.uml.ac.at/submitQuiz 5/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
One tenant can rent the same flat several times with different leasing
contracts.
To make that possible the association has to be {nonunique}.
Question 17: You are given the following clipping of a UML2 class
diagram. Which of the following object diagrams are consistent
with the class diagram?
elearning.uml.ac.at/submitQuiz 6/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
... are noted like classes with the keyword <<datatype>> (or another
pre-defined type, e.g. <<enumeration>>).
If an object can only have one out of several associations, this may be
modeled with a {xor} relationship.
A role name is noted in the upper left corner of a class symbol.
A role name is noted on the association ends.
You can specify the names of the roles the classes play in the
relationship on the association ends.
elearning.uml.ac.at/submitQuiz 7/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
elearning.uml.ac.at/submitQuiz 8/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
elearning.uml.ac.at/submitQuiz 9/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
Question 25: You are given the following clipping of a UML2 class
diagram. Which of the following object diagrams are consistent
with the class diagram?
elearning.uml.ac.at/submitQuiz 10/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
A is part of B.
The other way round: B is part of A.
B is part of A.
package
elearning.uml.ac.at/submitQuiz 11/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
protected
public
all
friends
B is part of A.
Question 31: You are given the following clipping of a UML2 class
diagram. Which of the following object diagrams are consistent
with the class diagram?
elearning.uml.ac.at/submitQuiz 12/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
... may be used so that operations that several classes need only have to
be implemented once.
... may have no attributes and no operations.
An abstract class is used so that operations and attributes that several
classes need only have to be implemented once, therefore it is necessary
that abstract classes have attributes and operations.
elearning.uml.ac.at/submitQuiz 13/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
... model that the existence of one object depends on the existence of
the association between two other objects.
elearning.uml.ac.at/submitQuiz 14/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
elearning.uml.ac.at/submitQuiz 15/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
Question 42: You are given the following clipping of a UML2 class
diagram. Which of the following statements are true?
One tenant can rent multiple flats with different leasing contracts.
One tenant can rent two flats with one leasing contract.
elearning.uml.ac.at/submitQuiz 16/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
elearning.uml.ac.at/submitQuiz 17/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
The subclass must not have more attributes than the superclass.
This would not make sense, as a subclass inherits the characteristics of the
superclass and should contain additional information.
There exist objects of class B that are not associated with objects of
class A2.
One (indirect) object of A may be associated with an object of A2.
One object of A is associated with exactly one object of C and two objects
of B.
One object of A is associated with exactly one object of C or two objects of B.
elearning.uml.ac.at/submitQuiz 19/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
association class
class attributes
binary relationship
elearning.uml.ac.at/submitQuiz 20/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
- please choose -
elearning.uml.ac.at/submitQuiz 21/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
- please choose -
- please choose -
Question 57: You are given the following clipping of a UML2 class
diagram. Which of the following object diagrams are consistent
with the class diagram?
One flat can be rented by multiple tenants with the same leasing
contract.
If a tenant dies (i.e. the tenant-object is deleted), all leasing contracts of
the tenant are deleted.
One tenant can rent the same flat multiple times with different leasing
contracts.
One flat can be rented by multiple tenants with different leasing
contracts.
elearning.uml.ac.at/submitQuiz 23/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
Nhập môn công nghệ phần mềm (Trường Đại học Bách khoa Hà Nội)
LOGIN HELP
UML Quiz
Quiz Score
You have solved Use case diagram with 61 Questions.
0.00% Questions were answered correct.
Get some feedback by viewing each Question.
X ∧ (X ∨ Y)
(X ∨ Y) ∧ Y
Y∧Y
X∧X
X∧Y
X ∨ (Y ∧ Y)
X∧X∧X
Y∧Y∧Y
elearning.uml.ac.at/submitQuiz 1/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
There is no difference (e.g. skill level) mentioned between the three tutors,
so there should not be three different roles with exactly the same behavior.
In this approach, only one tutor (T1, T2 or T3) does exam supervision.
elearning.uml.ac.at/submitQuiz 2/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
Y∧Y
X∧X
Y∧Y∧Y
X∧X∧Y
X∧X∧X
X∧Y∧Y
X∧Y
T∧U∧U
U∧T
T∧T
(T ∨ U) ∧ U
elearning.uml.ac.at/submitQuiz 3/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
U∧U
T∧T∧U
elearning.uml.ac.at/submitQuiz 4/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
Y∧Y∧Y
X∧X∧X
X∧X∧Y
Y∧Y
X∧X
X∧Y∧Y
X∧Y
X∧X∧Y
Y∧Y
Y∧Y∧Y
elearning.uml.ac.at/submitQuiz 5/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
X∧Y
X∧X∧X
X∧Y∧Y
X∧X
X∧X∧X
X∧Y∧Y
X∧X∧Y
Y∧Y∧Y
Y∧Y
X∧X
X∧Y
X∧X∧Y
X∧X∧X
X∧Y∧Y
elearning.uml.ac.at/submitQuiz 6/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
Y∧Y∧Y
X∧Y
Y∧Y
X∧X
elearning.uml.ac.at/submitQuiz 7/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
S∧S
R∧R
T∧T
R∧T
R∧S
T∧S
elearning.uml.ac.at/submitQuiz 8/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
Use cases specify the functionalities and the behavior that the system
which is being developed should have.
Use cases specify the procedural process within a system.
S∧S
T∧S
R∧S
R∧T
R∧R
T∧T
elearning.uml.ac.at/submitQuiz 9/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
In this approach, sign contract is done by the client, two type B or type C
employees and one type A employee, the options AAA, AAB and AAC are
not possible in the given design.
...might be ternary.
The association is always binary.
...is modeled with a directed edge with the arrowhead pointing to the use
case.
The edge is undirected.
elearning.uml.ac.at/submitQuiz 10/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
Yes, multiplicities are possible, but they only make sense on the actors' side.
elearning.uml.ac.at/submitQuiz 11/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
In this approach, change pwd inherits from edit profile, which would
mean changing the password is a special way of editing a profile.).
If you model strictly according to UML2 standard, change pwd must have an
association to student, otherwise nobody communicates with edit
profile.
The line between edit profile and change pwd does not comply with the
UML2 standard, there should be modeled an extend relationship instead.
elearning.uml.ac.at/submitQuiz 12/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
In this approach, change pwd has to be executed every time edit profile
is executed.
In this approach, staff is a department head and not the other way round
as it should be.
elearning.uml.ac.at/submitQuiz 13/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
U∧R
U∧R∧S
T∧T
U∧T
S∧U
Y∧Y∧Y
Y∧Y
X∧X
X∧Y
elearning.uml.ac.at/submitQuiz 14/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
X∧X∧Y
X∧Y∧Y
X∧X∧X
X∧X∧Y
X∧Y∧Y
Y∧Y
X∧X∧X
X∧X
X∧Y
Y∧Y∧Y
X∧Y
X∧X∧X
elearning.uml.ac.at/submitQuiz 15/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
Y∧Y∧Y
X∧X∧Y
Y∧Y
X∧Y∧Y
X∧X
elearning.uml.ac.at/submitQuiz 16/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
... the behavior of A might or might not be inserted into the behavior of B.
... the behavior of B might or might not be inserted into the behavior of A.
elearning.uml.ac.at/submitQuiz 17/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
S∧U∧U
U∧R
R∧U∧U
U∧S
U∧U
J
elearning.uml.ac.at/submitQuiz 18/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
oral exam inherits all associations from exam. Thus in this approach two
actors teacher and two actors student would be needed for the oral
exam.
elearning.uml.ac.at/submitQuiz 19/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
The arrow between conduct interview and grade does not comply with
the UML2 standard, there should be modeled an include relationship
instead.
elearning.uml.ac.at/submitQuiz 20/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
U∧R
U∧R∧S
S∧U
S∧S∧S
R∧S
S∧S
elearning.uml.ac.at/submitQuiz 21/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
elearning.uml.ac.at/submitQuiz 22/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
In this approach, the arrow points in the wrong direction. withdraw cash
should extend go for lunch and not the other way round.
Y∧Y∧Y
X∧X∧Y
Y∧Y
X∧X∧X
(X ∨ Y) ∧ Y
X∧Y∧Y
X∧X
X∧Y
elearning.uml.ac.at/submitQuiz 23/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
R∧R
S∧S
R∧S
R∧U
Y∧Y∧Y
X∧Y∧Y
X∧X∧X
Y∧Y
X∧X∧Y
X∧X
X∧Y
elearning.uml.ac.at/submitQuiz 24/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
Login
Use cases describe ways the user can interact with the system to gain a
certain value. Use cases do not describe the process (the single steps) of
how this interaction takes place, this might be documented within the use
case description. A user will never just log into the system, he will do so to
do something else, e.g. order a book. login might be the precondition of the
use case Order a book verbalised in the use case description.
Order a book
Cancel order
T∧S
elearning.uml.ac.at/submitQuiz 25/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
T∧T
R∧T
R∧R
S∧S
R∧S
In this approach the arrow points into the wrong direction, do lab test
includes write protocol, not the other way round.
elearning.uml.ac.at/submitQuiz 26/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
X∧X
X∧Y∧Y
X∧X∧X
X∧X∧Y
Y∧Y∧Y
Y∧Y
X∧Y
... specifies who performs which tasks with a system that is going to be
developed.
... comprises actors and use cases.
elearning.uml.ac.at/submitQuiz 27/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
U∧R
U∧U∧U
U∧U
S∧R∧U
R∧U∧U
elearning.uml.ac.at/submitQuiz 28/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
... can be linked to abstract and non-abstract use cases via associations.
elearning.uml.ac.at/submitQuiz 29/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
A or B can execute Z.
go for a walk is executed by two actors man, woman and both. For
example it is possible that woman and woman or man and both go for a walk.
elearning.uml.ac.at/submitQuiz 30/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
In this approach, woman goes for a walk with man or woman, because woman is
a specialisation of man.
elearning.uml.ac.at/submitQuiz 31/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
If you model strictly according to UML2 standard, nobody executes the use
case mix cocktails.
X∧Y∧Y
X∧X∧X
X∧Y
Y∧Y∧Y
X∧X∧Y
Y∧Y
elearning.uml.ac.at/submitQuiz 32/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
X∧X
In this approach, the mechanic always has to change brake unit, when
he does do car service.
In this approach, the arrow points into the wrong direction. change brake
unit should extend do car service and not the other way round.
elearning.uml.ac.at/submitQuiz 33/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
elearning.uml.ac.at/submitQuiz 34/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664
R∧R
R∧U
R∧S
S∧S
Info 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
correct wrong
Next
elearning.uml.ac.at/submitQuiz 35/35
Downloaded by Ái Trân (aitran.le24@gmail.com)