0% found this document useful (0 votes)
203 views77 pages

Photo 121212

The document describes a student's exam submission for an object-oriented analysis and design course. It includes information about the student, class, group, exam questions and answers, timing, and score. Multiple choice questions are asked about UML diagrams including class, sequence, state machine, and use case diagrams.

Uploaded by

aitran.le24
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
203 views77 pages

Photo 121212

The document describes a student's exam submission for an object-oriented analysis and design course. It includes information about the student, class, group, exam questions and answers, timing, and score. Multiple choice questions are asked about UML diagrams including class, sequence, state machine, and use case diagrams.

Uploaded by

aitran.le24
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 77

Bài làm của sinh viên 

THI CUỐI KỲ 2 (2020-2021) PTTK HƯỚNG ĐỐI TƯỢNG


Học phần: Phân tích thiết kế hướng đối tượng - Học kỳ 2 năm học 2020-2021
Mã số sinh viên: 102160275 Họ tên: Nguyễn Lại Tam Vũ
Lớp: 16TCLC3 Nhóm: 19Nh13A
Thời gian bắt đầu: 06:56 25/08/2021 Thời gian nộp bài: 07:41 25/08/2021
Thời gian làm bài: 45:00 Tổng số câu hỏi: 40
Số câu làm đúng: 20 Số lần vi phạm: 0
Số lần không nhận dạng được: 0 Trạng thái nhận dạng: Không nhận dạng
Điểm: 5

Câu 1 (Thời gian trả lời: 00:55)


You are given the following clipping of a UML class diagram. Which of the following statements are
true?

A. Groups can only consist of persons, they cannot comprise of other groups.

B. It is possible to navigate from a person to the appointments that he is in charge of.

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.

Câu 2 (Thời gian trả lời: 00:55)


You are given the following sequence diagram. Which operations does class B have according to the
diagram?
A. z():void

 B. x():void

 
C. x(void)

D. y():int

Câu 3 (Thời gian trả lời: 01:00)


Which of the following statements are true ?

  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

D. A role name is noted in the upper left corner of a class symbol

Câu 4 (Thời gian trả lời: 01:05)


How do you model the following situation with a UML use case diagram:
Father and son cook dinner. In the course of that, one of them always has to load the dishwasher. In
this approach, only the son does the cooking.
 A. A

 
B. C

C. D

D. B

Câu 5 (Thời gian trả lời: 01:05)


You are given the following clipping of a UML class diagram. Which of the following statements are
true?

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.

Câu 6 (Thời gian trả lời: 01:15)


How do you model the following situation with a UML use case diagram: A travel booking is cancelled
by a staff member or by the department head (who also is a staff member).
A. C

B. D

 
C. B

D. A

Câu 7 (Thời gian trả lời: 00:55)


Which of the following statements about the given diagram clipping are true?

A. A inherits all of B's associations.

B. A can execute the same use cases as B.

  C. B can execute the same use cases as A.

 D. B inherits all of A's associations.

Câu 8 (Thời gian trả lời: 00:55)


Which of the following statements about the given diagram clipping are false?

A. Z inherits from Y, it is a specialized Y and can be executed by sub actors (descendants) of


X. A and B inherit the behavior of X, they are specialized X and can execute Y.
B. A and B can execute Y separately.

 
C. A or B can execute Z.


 D. A and B execute Y together.

Câu 9 (Thời gian trả lời: 01:05)

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

Câu 10 (Thời gian trả lời: 00:45)


Which of the following statements about the given diagram clipping are true?

A. B is called "base use case".

B. A must not be abstract.

C. A inherits all relationships from B.

 
D. B inherits all relationships from A.

Câu 11 (Thời gian trả lời: 01:20)


You are given the following clipping of a UML class diagram. Which of the following statements are
true?
  A. One flat can be rented by multiple tenants with different leasing contracts.

B. One tenant rents exactly one flat.

  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.

Câu 12 (Thời gian trả lời: 00:55)


Which of the following statements are FALSE about Use Cases?

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âu 13 (Thời gian trả lời: 00:45)


Which statements are false for a use case?

A. a use case may have many scenarios

B. good source for identifying use cases is external events

 
C. a use case captures some user-visible and non-visible functions

D. a use case can be traced to a discrete goal

Câu 14 (Thời gian trả lời: 01:30)


The following <<extend>>-relationship means, that ...

 
A. ... A can extend B.

B. ... A cannot be executed without B.

C. ... B can extend A.


D. ... B always has to invoke A.

Câu 15 (Thời gian trả lời: 00:50)


How do you model the following situation with a UML class diagram: The car fleet of a car rental
contains multiple cars, one car belongs to exactly one car fleet.

A. D

 B. A

C. B

 
D. C

Câu 16 (Thời gian trả lời: 01:00)


What do you think you can show in a class diagram?

a) Groups of classes

b) The relationships between classes

c) The dynamic behavior of classes


d) The sequence of steps needed to complete a use case

A. a, c and d

B. a, b, c and d

 C. a and b

 
D. a, b and c

Câu 17 (Thời gian trả lời: 01:30)


Which of the following statements about the given diagram are true?
A. If an instance of B is deleted, all contained instances of A are also deleted.

B. If an instance of A is deleted, all contained instances of B are also deleted.

  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.

Câu 18 (Thời gian trả lời: 00:55)

You are given the following clipping of a UML class diagram. Which of the following statements are
true?

A. It is possible to navigate from a person to the appointments that he is in charge of.

 
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.

Câu 19 (Thời gian trả lời: 01:10)

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

Câu 20 (Thời gian trả lời: 01:00)


How do you model the following situation with a UML2 use case diagram:
A student edits his user profile. In the course of that he can also change his password if he likes.
 A. D

 
B. C

C. A

D. B

Câu 21 (Thời gian trả lời: 01:05)


You are given the following sequence diagram. Which traces are impossible?

A. b → c → a → a → b → c → d

B. a → b → c → d

 C. d → a → b → c

 
D. b → a → c → d

Câu 22 (Thời gian trả lời: 01:05)


How do you model the following situation with a UML use case diagram: A mechanic does a car
service. During that service, it might be necessary to change the break unit.
A. D

B. C

 C. B

 
D. A

Câu 23 (Thời gian trả lời: 00:45)


Within sequence diagrams ...

 A. .... you can refer to other sequence diagrams

B. .... the behavior of one object is modeled.

C. ... time is no separate dimension.

 
D. .... the chronological process of one object is modeled.

Câu 24 (Thời gian trả lời: 00:55)


You are given the following clipping of a UML class diagram. Which of the following statements are
false?

A. D

 
B. C

 C. B

D. A

Câu 25 (Thời gian trả lời: 01:30)


You are given the following state machine diagram. What is the value of x after the occurrence of the
event chain
e1 e2 e4 e2 e1?
A. 26

B. 12

 
C. 25

D. 13

Câu 26 (Thời gian trả lời: 01:15)


How do you model the following situation with a UML class diagram: There are exactly two kinds of
participants, namely members and guests. Guests are invited by members.

 
A. C

B. A

C. B

D. D

Câu 27 (Thời gian trả lời: 01:00)


How do you model the following situation with a UML class diagram: Every restaurant has at least
one kitchen, one kitchen is part of exactly one restaurant.
 
A. C

B. D

C. B

 D. A

Câu 28 (Thời gian trả lời: 00:45)


Associations between classes are implemented by ... ?

 
A. function calls

B. types

C. functions

 D. variables

Câu 29 (Thời gian trả lời: 01:10)


How do you model the following situation with a UML class diagram:
Every restaurant has at least one kitchen, one kitchen is part of exactly one restaurant.

 A. B

 
B. A

C. C

D. D
D. D

Câu 30 (Thời gian trả lời: 00:50)


Which of the following combine to form an OOAD method?
a) Notation/Formal specification
b) Diagram
c) Process
d) View

 A. a, b and d

B. a and b

C. a and c

 
D. a, b and c

Câu 31 (Thời gian trả lời: 01:05)


You are given the following clipping of a UML 2 class diagram. Which of the following statements are
FALSE?

 
A. One object of D may be associated with multiple objects of C.

B. There are no direct instances of A.

 C. Two objects of D are associated with * objects of A.

D. One object of B must be associated with exactly two objects of D.

Câu 32 (Thời gian trả lời: 00:50)


Which of the following statements are true?

A. None of the above.

 
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.

Câu 33 (Thời gian trả lời: 00:50)


Which statements are false for a use case?

A. a use case may have many scenarios


A. a use case may have many scenarios

B. good source for identifying use cases is external events

C. a use case must be initiated by an actor

 
D. a use case captures some user-visible and non-visible functions

Câu 34 (Thời gian trả lời: 00:55)


A sequence diagram is a two-dimensional chart. The two dimensions are ...

A. vertical: roles / horizontal: time axis

 
B. vertical: time axis / horizontal: roles

C. other answer

Câu 35 (Thời gian trả lời: 00:55)


Which of the following statements are FALSE about Use Cases?

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

D. Use cases description provides a good source to identify domain concepts

Câu 36 (Thời gian trả lời: 01:15)


In order to model the relationship “a course is composed of 5 to 20 students and one or more
instructors”, you could use:
a) To model systems using object-oriented concepts
b) To provide a process for software development
c) To support small-scale and large-scale analysis and design
d) To provide an insight into implementation mechanisms

 
A. Association

B. Composition

C. Realization

 D. Aggregation

Câu 37 (Thời gian trả lời: 01:30)


Which of the following statements about the given diagram clipping are true?

  A. B can execute the same use cases as A.

B. A inherits all of B's associations.


C. A can execute the same use cases as B.

  D. B inherits all of A's associations.

Câu 38 (Thời gian trả lời: 01:00)


How do you model the following situation with a UML class diagram:
A fair is visited by at least one visitor. One visitor visits at least one fair.

 A. A

B. B

C. C

 
D. D

Câu 39 (Thời gian trả lời: 00:50)


When to use Interaction Diagrams?

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

Câu 40 (Thời gian trả lời: 01:05)


Which statements are false for a use case?

A. a use case may have many scenarios

 
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

D. a use case can be traced to a discrete goal

Thoát
lOMoARcPSD|38004664

Class - Lecture notes 5

Nhập môn công nghệ phần mềm (Trường Đại học Bách khoa Hà Nội)

Scan to open on Studocu

Studocu is not sponsored or endorsed by any college or university


Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result

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.

Which of the following differences between class


Question 1:
diagrams and object diagrams are true?
Class diagrams describe a system on type level, object diagrams on
instance level.
Class diagrams describe the structure of a system. object diagrams
describe the shape of a system at a certain point in time.
Class diagrams model the structure of a system, object diagrams model
the dynamic view.
Both diagram types are used for modeling the structural aspects of a
system.

Class diagrams and object diagrams use completely different notations.

Which of the following statements about


Question 2:
compositions (composite aggregations) are true?
The multiplicity of a composite aggregation may be ≥1.
The multiplicity can either be 0 or 1.

In a composition, a part may belong to only one composite at a time.

When the composite element is deleted, the parts also die.


Yes, if the multiplicity is 1.

The composite aggregation is a transitive relationship.

Question 3: Which of the following optional information can be


given on an association between classes?
An arrow at the end to show navigability.

Multiplicity at the end of an association.


elearning.uml.ac.at/submitQuiz 1/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result

A small filled triangle near the association name to show in which way to
"read" the name.
Name

How do you model the following situation with a


Question 4:
UML2 class diagram:
An event may be part of another event.
reflexive association

reflexive association and aggregation

enumeration

reflexive association and composition

Question 5: A generalization ...


... may be overlapping or disjoint.

... may be complete or incomplete.

... allows taxonomical relations between superclasses and subclasses.

... allows a class to inherit the behavior of another class.

... allows using the instance of a subclass when the instance of a


superclass is expected.

You are given the following clipping of a UML2 class


Question 6:
diagram. Which of the following statements are true?

elearning.uml.ac.at/submitQuiz 2/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result

An instance of A can see y.

Objects of B and D can see g.

Objects of C and B can see f.


f is private, thus objects of C cannot see it.

An object of A may or may not contain objects of C.

Question 7: To define the cardinalities of ternary associations ...


... you have to set the cardinality of two classes to one and determine the
cardinality of the third class.
... you look at each of the classes separately.

... 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.

Question 8:How do you model the following situation with a


UML2 class diagram:
FurnitureFritz charges custom-made furniture which is
assembled from prefabricated components.

Question 9: 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 3/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result

Question 10: A composition (composite aggregation) may


express that ...
... when a customer is deleted from a database, all his orders are deleted
as well (dependency).
... a building part can consist of other building parts but not of itself (no
cycles).
... the brain is part of the human but not the other way round
(asymmetry).

Question 11: Primitive data types ...


... are defined strictly and cannot be defined by the user.
UML2 has four pre-defined data types (namely String, Boolean,
Integer, UnlimitedNumber), additionally, the user can define other data
types using the keyword <<primitive>>.

... have no internal structure.

... are a synonym for classes.

... cannot have operations.

How do you model the following situation with a


Question 12:
UML2 class diagram:
elearning.uml.ac.at/submitQuiz 4/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result

A trip might comprise of multiple tours, one tour can be included


in several trips.

Question 13: Associations ...


... may have navigable and non-navigable association directions.

... may have multiplicities to indicate to how many instances of a class


the object is associated to.
... have to be identified by a unique association name
The name is optional.

... show possible relations between instances of classes.

Question 14:How do you model the following situation with a


UML2 class diagram:
Every restaurant has at least one kitchen, one kitchen is part of
exactly one restaurant.

You are given the following clipping of a UML2 class


Question 15:
diagram. Which of the following statements are true?

elearning.uml.ac.at/submitQuiz 5/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result

One tenant can rent the same flat several times with different leasing
contracts.
To make that possible the association has to be {nonunique}.

One tenant rents exactly one flat.


One tenant can rent no flat, one flat or multiple flats because the multiplicity
is *.

One flat can be rented by multiple tenants with different leasing


contracts.
One tenant can rent multiple flats with different leasing contracts.

Question 16:How do you model the following situation with a


UML2 class diagram:
A doctor treats multiple patients, a patient can be treated by
multiple doctors. To document which doctor has when treated
which patient, the date and time of each treatment are stored. It
has to be possible that a doctor treats the same patient multiple
times.

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

2/20/22, 12:04 PM UML Quiz - Result

Question 18: Data types in UML2 ...


... can have attributes but no operations.
Just like classes, data types may have operations and attributes.

... have instances without identity (in contrast to classes)..

... can be primitive types and enumerations.

... are noted like classes with the keyword <<datatype>> (or another
pre-defined type, e.g. <<enumeration>>).

Question 19: Which of the following statements are true


A class must never have a relationship with itself.
This is possible, e.g.: Class Person, association childOf -> a Person is
childOf another Person.

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.

You are given the following clipping of a UML2 class


Question 20:
diagram. Which of the following statements are true?

elearning.uml.ac.at/submitQuiz 7/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result

An appointment can be made for multiple participants.

It is possible to navigate from a person to the appointments that he is in


charge of.
One person can be included in several groups.

There are groups that do not have any persons assigned.

One group can consist of several persons.

It is possible to navigate from an appointment to the person who is in


charge of it.
A participant that has been assigned to an appointment can be group
and person at the same time.
There are appointments that do not have any participants assigned yet.

Groups can only consist of persons, they cannot comprise of other


groups.
A reference can be assigned to multiple appointments.

Several persons are in charge of one appointment.

If an appointment is deleted all references linked with it are deleted as


well.
If a group is deleted all persons that are in that group are deleted as well.

Question 21: Relate the following terms!


How is the following concept called?
Class A is associated with class B, but B is never associated with A.
- please choose -

An aggregation is a special ...


- please choose -

What is a synonym for strong aggregation?


- please choose -

How is the following concept called?


If class A is associated with class B, and class B is associated with class C, then also A is associated with C.
- please choose -

elearning.uml.ac.at/submitQuiz 8/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result

Which of the following statements about shared


Question 22:
aggregations are true?
Chains of shared aggregation links may form a cycle..
Chains of shared aggregation links build a graph without any cycles.

A shared aggregation is shown by a solid-filled diamond on the end of an


association line.
A shared aggregation is shown by a hollow diamond, this solid-filled
diamond represents a composition (composite aggregation).

Shared aggregations are used to express an is-a relationship.


Shared aggregations express part-of relationships.

The multiplicity of a shared aggregation may be ≥1.

You are given the following clipping of a UML2 class


Question 23:
diagram. Which of the following statements are true?

The association between A and D can be navigated coming from A.

One object of B is associated with exactly two objects of A.

Several objects of A are associated with exactly one object of B or one


object of C.
One object of A is associated with exactly one object of B or one object of C.

One object of A is associated with exactly one object of B or one object of


C.

Question 24: How do you model the following situation with a


UML2 class diagram:
A fitness center consists of several sectors. One sector may be
divided into several sectors which might as well be divided into
sectors and so on.
reflexive association

reflexive association and aggregation

elearning.uml.ac.at/submitQuiz 9/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result


enumeration

reflexive association and composition

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?

Question 26:How do you model the following situation with a


UML2 class diagram:
During one soccer season, multiple players participate in
multiple games. Each player scores in each game a certain
number of goals.

elearning.uml.ac.at/submitQuiz 10/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result

Question 27: How do you model the following situation with a


UML2 class diagram:
An order is made with exactly one waiter, one waiter handles
multiple orders.

Which of the following statements about the given


Question 28:
diagram are true?

A is part of B.
The other way round: B is part of A.

The chains of aggregation links form a directed, acyclic graph.


The chains of aggregation links of a composite aggregation form a tree. The
chains of aggregation links of a shared aggregation form a directed, acyclic
graph.

The composite objects form a tree structure.

B is part of A.

If an instance of B is deleted, all contained instances of A are also


deleted.
It works the other way round: If an instance of A is deleted, all contained
instances of B are also deleted.

If an instance of A is deleted, all contained instances of B are also


deleted.
If an instance of A is deleted, the contained instances of B are not
affected.
If an instance of A is deleted, all contained instances of B are also deleted.

Which visibilities can attributes and operations of


Question 29:
classes have?
private

package

elearning.uml.ac.at/submitQuiz 11/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result

protected

public

all

friends

Which of the following statements about the given


Question 30:
diagram are true?

The composite objects form a tree structure.


The chains of aggregation links of a composite aggregation form a tree. The
chains of aggregation links of a shared aggregation form a directed, acyclic
graph.

If an instance of A is deleted, all contained instances of B are also


deleted.
This would only be the case when a composition (composite aggregation) is
modeled.

If an instance of A is deleted, the contained instances of B are not


affected.
A is part of B.
It is the other way round: B is part of A.

B is part of A.

If an instance of B is deleted, all contained instances of A are also


deleted.
It is the other way round: B is part of A. In addition to that, this would only be
the case when a composition (composite aggregation) is modeled.

The chains of aggregation links form a directed, acyclic graph.

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

2/20/22, 12:04 PM UML Quiz - Result

Question 32: How do you model the following situation with a


UML2 class diagram:
There are multiple different bird species, e.g. blackbird, thrush
and starling.

Question 33: An abstract class ...


... is only useful if it has subclasses.

... 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.

... may not be instantiated.

Question 34: How do you model the following situation with a


UML2 class diagram:
On a blind date exactly two people take part. A person can take
part in multiple blind dates. It is not sufficient to know a person
to derive all his/her dates.

elearning.uml.ac.at/submitQuiz 13/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result

Question 35: How do you model the following situation with a


UML2 class diagram:
Each talk is done by a professor or by an assistant.

Question 36: Association classes are used to ...


... reduce the cardinality of associations.

... further specify associations.

... 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

2/20/22, 12:04 PM UML Quiz - Result

Question 37: Enumerations ...


... are a user-definable data type which instances form a list of named
literal values.
... have the keyword <<enumeration>>.

... may have operations.

Question 38: How do you model the following situation with a


UML2 class diagram:
One team may consist of several other teams.

You are given the following clipping of a UML2 class


Question 39:
diagram. Which of the following statements are true?

One object of C is associated with exactly one object of B.


One object of C is associated with at least one object of B.

One object of A is associated with exactly three objects of C or any


amount of objects of B; One object of C is associated with exactly two
objects of A.
One object of B is associated with exactly one object of A.

One object of A can never be associated with objects of C and B at the


same time.

elearning.uml.ac.at/submitQuiz 15/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result

How do you model the following situation with a


Question 40:
UML2 class diagram:
Every product is in one of the three following states: solid, liquid
or gas.

Question 41: Which of the following properties can class


attributes have?
{optional}: allows blank values

/attribute name: derived attribute

{final}: attribute value must not be changed

|attribute name: ignore visibility indicators

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.

One flat can be rented by multiple tenants with different leasing


contracts.

elearning.uml.ac.at/submitQuiz 16/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result


One flat can be rented by multiple tenants with the same leasing
contract.

Question 43: Which of the following statements are true?


An attribute can have a type.

Every class in a class diagram must have attributes and operations.


A class is modeled as a rectangle which is divided into several sections. The
first section contains the name, the second attributes and the third the
operations. Only the first section is mandatory.

Operations may have parameters and return values.

Classes always have a section showing a textual description.


Such a section does not exist.

You are given the following clipping of a UML2 class


Question 44:
diagram. Which of the following statements are true?

Direct instances of A exist.


A is an abstract class, thus it cannot have direct instances.

One object of D is associated with at least one object of B.

One object of a subclass of A is associated with * objects of C.

One object of B is associated with 1..* objects of D.


One object of B is associated with * (or 0..*)objects of D.

Question 45: How do you model the following situation with a


UML2 class diagram:
There are exactly two kinds of participants, namely members
and guests. Guests are invited by members.

elearning.uml.ac.at/submitQuiz 17/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result

Question 46: How do you model the following situation with a


UML2 class diagram:
A fair is visited by at least one visitor. One visitor visits at least
one fair.

Question 47: A generalization relationship between a subclass


and a superclass has the following properties:
A subclass can only inherit from one superclass.
Multiple inheritance is valid.

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.

A superclass must not be abstract.


A superclass may be abstract.

The subclass inherits the properties of the superclass.

You are given the following clipping of a UML2 class


Question 48:
diagram. Which of the following statements are true?
elearning.uml.ac.at/submitQuiz 18/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result

An object of A1 can directly be associated with an object of B.

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.

Each object of A1 has to be an instance of A.

You are given the following clipping of a UML2 class


Question 49:
diagram. Which of the following statements are true?

The diamond near A is called composition.


The diamond near A is called shared aggregation.

If an instance of A is deleted, all contained instances of B are deleted as


well.
This is a shared aggregation, therefore that is not the case. If it were a
composition (solid-filled diamond), the contained instances would be
deleted.

One object of B may be associated with multiple objects of A.

One object of A may contain two objects of B.


..or has an association to one object of C.

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.

Question 50: How do you model the following situation with a


UML2 class diagram:
The car fleet of a car rental contains multiple cars, one car
belongs to exactly one car fleet.

elearning.uml.ac.at/submitQuiz 19/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result

Question 51: How do you model the following situation with a


UML2 class diagram:
A season worker may be employed in one or several seasons,
the beginning and the end of each employment period is saved.
ternary relationship

association class

class attributes

binary relationship

You are given the following clipping of a UML2 class


Question 52:
diagram. Which of the following statements are true?

There are no direct instances of A.

Two objects of D are associated with * objects of A.


One object of D is associated with * objects of A.

One object of D may be associated with multiple objects of C.

One object of B must be associated with exactly two objects of D.

elearning.uml.ac.at/submitQuiz 20/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result

You are given the following clipping of a UML2 class


Question 53:
diagram. Which of the following statements are true?

It is possible that one direct object of A is associated to an object of B.


A is abstract, thus there do not exist any direct objects of A.

One (indirect) object of A may be associated with an object of A1.

Objects of class B may be associated with objects of class C vie Objects


of class A2.
One object of A1 may be associated with an object of A2.

Question 54:How do you model the following situation with a


UML2 class diagram:
A vehicle comprises of multiple parts. Each part can be built in
a maximum of one super-part. One super-part comprises of
multiple sub-parts.

Question 55: Which kind of navigability belongs to which kind of


arrowhead, considering the navigability from A to B?

- please choose -

elearning.uml.ac.at/submitQuiz 21/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result

- please choose -

- please choose -

Question 56: A class diagram describes ...


shows the dynamic view of a system.

shows the interaction view of a system.

shows the static view of a system.

shows the practical view of a system.

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?

You are given the following clipping of a UML2 class


Question 58:
diagram. Which of the following statements are true?
elearning.uml.ac.at/submitQuiz 22/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:04 PM UML Quiz - Result

The diamond near A is called composition.

One object of B is associated with two other objects of B.


One object of B is associated with two other objects of B, one in the role of n
and one in the role of v.
The following image shows a compliant object diagram:

one object of B is contained in exactly one object of A.

If an instance of B is deleted, all contained instances of A are deleted as


well.
The other way round: If an instance of A is deleted, all contained instances of
B are deleted as well.

One object of A may be associated with one object of B.

You are given the following clipping of a UML2 class


Question 59:
diagram. Which of the following statements are true?

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.

© 2022 Business Informatics Group, Vienna University of Technology

elearning.uml.ac.at/submitQuiz 23/23
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

Use case - Lecture notes 78

Nhập môn công nghệ phần mềm (Trường Đại học Bách khoa Hà Nội)

Scan to open on Studocu

Studocu is not sponsored or endorsed by any college or university


Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

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.

Question 1:The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case B?

X ∧ (X ∨ Y)

(X ∨ Y) ∧ Y

Y∧Y

X∧X

X∧Y

X ∨ (Y ∧ Y)

X∧X∧X

Y∧Y∧Y

How do you model the following situation with a


Question 2:
UML2 use case diagram:

elearning.uml.ac.at/submitQuiz 1/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

An exam supervision is done by one professor and three tutors.

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, three or more tutors do exam supervision.

In this approach, only one tutor (T1, T2 or T3) does exam supervision.

Question 3:With which use cases does actor U communicate -


no matter if other actors are also involved?

Question 4:Which of the following statements about extension


points are correct?
An extension point is always linked to a guard condition.

The name of an extension point of a use case has to be unique within


that use case.
You can model a maximum of one extension point for each use case.

elearning.uml.ac.at/submitQuiz 2/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result


Extension points are used with <<include>>-relationships.
They are used with <<extend>>-relationships.

Extension points are used with <<extend>>-relationships.

Question 5: The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case B?

Y∧Y

X∧X

Y∧Y∧Y

X∧X∧Y

X∧X∧X

X∧Y∧Y

X∧Y

Question 6: The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case J?

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

2/20/22, 12:17 PM UML Quiz - Result

U∧U

T∧T∧U

Question 7: How do you model the following situation with a


UML2 use case diagram:
Father and son cook dinner. In the course of that, one of them
always has to load the dishwasher.

In this approach, only the son does the cooking.

If you model strictly according to UML2 standard, in this approach nobody


does load dishwasher.

In this approach, father and son execute load dishwasher together.

Question 8: Which of the following questions are useful when


identifying the involved actors of a use case diagram?
Who or what is interested in the systems' results?

Which hardware is available for the users of the system?


The necessary hardware cannot be modeled with a use case diagram.

elearning.uml.ac.at/submitQuiz 4/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

Who needs the system's support for their everyday work?

Question 9:The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case B?

Y∧Y∧Y

X∧X∧X

X∧X∧Y

Y∧Y

X∧X

X∧Y∧Y

X∧Y

Question 10:The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case A?

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

2/20/22, 12:17 PM UML Quiz - Result


Y

X∧Y

X∧X∧X

X∧Y∧Y

X∧X

Question 11:The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case B?

X∧X∧X

X∧Y∧Y

X∧X∧Y

Y∧Y∧Y

Y∧Y

X∧X

X∧Y

Question 12:The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case A?

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

2/20/22, 12:17 PM UML Quiz - Result

Y∧Y∧Y

X∧Y

Y∧Y

X∧X

How do you model the following situation with a


Question 13:
UML2 use case diagram:
Mother and daughter cook dinner together. Sometimes it is
necessary that one of them gets chives from the garden.

If you model strictly according to UML2 standard, in this approach nobody


executes get chives.

In this approach, daughter and mother or daughter and daughter do the


cooking, because daughter is a specialisation of mother.

In this approach, both do get chives together.

elearning.uml.ac.at/submitQuiz 7/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

Question 14:The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case F?

S∧S

R∧R

T∧T

R∧T

R∧S

T∧S

Question 15:Which of the following statements about the given


diagram clipping are true?

B is called "base use case".

B should not be abstract.


If B were an abstract use case, B would be useless because it can neither be
executed nor does it inherit behavior to another use case.

B inherits the behavior of A and can override and expand it.

A inherits all relationships from B.

A must not be abstract.

B is called "sub use case".

B inherits all relationships from A.

Question 16: Which of the following statements characterise use


cases?

elearning.uml.ac.at/submitQuiz 8/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result


Use cases are suitable for modeling interfaces between two systems.

Use cases are derived from the clients' requests.

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.

Question 17:The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case E?

S∧S

T∧S

R∧S

R∧T

R∧R

T∧T

Question 18: How do you model the following situation with a


UML2 use case diagram:
There are 3 different types of staff members namely A, B and C.
For a valid contract, the client, one staff member of Type A and
two other staff members of either type (A, B or C) have to sign
the contract.
(Possible employee combinations: AAA, AAB, AAC, ABB, ACC,
ABC

elearning.uml.ac.at/submitQuiz 9/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

In this approach, sign contract is done by one type A, B or C employee


and one type A employee.

In this approach, sign contract is executed by three employees of types


A, B or C in any combination.

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.

Question 19: The association between an actor and a use case...


...is binary.

...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.

...might have multiplicities.

elearning.uml.ac.at/submitQuiz 10/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

Yes, multiplicities are possible, but they only make sense on the actors' side.

...is modeled with a dashed line.


The line is continuous.

Question 20:Which of the following statements about the given


diagram clipping are true?

A and B can execute Z seperately.

A and B execute Y together.


B inherits the roles and relationships from A, it is a specialised A and can
execute Y instead of A.

A and B execute Z together.


B inherits the roles and relationships from A, it is a specialised A and can
execute Y instead of A. Z inherits the behavior of Y, it is a specialised Y and
can be executed by A or B instead of Y.

A and B can execute Y separately.

Question 21: Which are the desired results of modeling use


cases?
A model of the systems' application flows.
Use case diagrams cannot be used to model application flows.

Several use case diagrams.

A detailed textual description of every use case.

Question 22: With which use cases does actor S communicate -


no matter if other actors are also involved?

elearning.uml.ac.at/submitQuiz 11/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

How do you model the following situation with a


Question 23:
UML2 use case diagram:
A student edits his user profile. In the course of that he can also
change his password if he likes.

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.

If you model strictly according to UML2 standard, edit profile needs an


association to student, or else nobody communicates with change pwd.

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

2/20/22, 12:17 PM UML Quiz - Result

In this approach, change pwd has to be executed every time edit profile
is executed.

Question 24:How do you model the following situation with a


UML2 use case diagram:
A travel booking is cancelled by a staff member or by the
department head (who also is a staff member).

In this approach, cancel booking is done by department head and staff


together.

In this approach, staff is a department head and not the other way round
as it should be.

In this approach, the department head is not a member of staff.

elearning.uml.ac.at/submitQuiz 13/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

Question 25:The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case C?

U∧R

U∧R∧S

T∧T

U∧T

S∧U

Question 26: The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case A?

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

2/20/22, 12:17 PM UML Quiz - Result

X∧X∧Y

X∧Y∧Y

X∧X∧X

Question 27:The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case A?

X∧X∧Y

X∧Y∧Y

Y∧Y

X∧X∧X

X∧X

X∧Y

Y∧Y∧Y

Question 28: The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case A?

X∧Y

X∧X∧X

elearning.uml.ac.at/submitQuiz 15/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

Y∧Y∧Y

X∧X∧Y

Y∧Y

X∧Y∧Y

X∧X

Question 29: How do you model the following situation with a


UML2 use case diagram:
The directors or his secretary are allowed to make an
appointment, but nobody else.

In this approach, director and secretary do make appointment together.

make appointment can also be executed by actor staff.

Question 30: The following <<extend>>-relationship means, that


...

elearning.uml.ac.at/submitQuiz 16/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

... B always has to invoke A.

... B can extend A.

... B can be executed instead of A.

... A might or might not invoke B.

... B might or might not invoke A.

... A can extend B.

... A cannot be executed without B.

Question 31: The following <<include>>-relationship means,


that ...

... the behavior of A might or might not be inserted into the behavior of B.

... B can be executed instead of A.

... B cannot be executed without A.

... the behavior of B always has to be inserted into the behavior of A.

... A might or might not invoke use case B.

... the behavior of B might or might not be inserted into the behavior of A.

... A cannot be executed without B.

... the behavior of A always has to be inserted into the behavior of B.

Question 32: With which use cases does actor T communicate -


no matter if other actors are also involved?

elearning.uml.ac.at/submitQuiz 17/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

Question 33:The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case H?

S∧U∧U

U∧R

R∧U∧U

U∧S

U∧U

Question 34: With which use cases does actor T communicate -


no matter if other actors are also involved?

J
elearning.uml.ac.at/submitQuiz 18/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

How do you model the following situation with a


Question 35:
UML2 use case diagram:
For an exam, a student and a teacher need to be present. If it is
an oral exam, a professor has to act as second examiner.

In this approach, the only actor communicating with oral exam is


professor.

In this approach, two actors professor are involved instead of one


professor and one teacher. Additionally, there should be an inheritance
relationship between oral exam and exam instead of an extend
relationship.

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

2/20/22, 12:17 PM UML Quiz - Result

Question 36:Which of the following statements about the given


diagram clipping are true?

A inherits all of B's associations.

B can execute the same use cases as A.

B inherits all of A's associations.

A can execute the same use cases as B.

Question 37: How do you model the following situation with a


UML2 use case diagram:
A teacher is conducting an interview with a student. In the
course of that, the teacher always has to grade the student.

In this approach, grade inherits the behavior from conduct interview.


Thus grade is a specialisation from conduct interview.

The arrow between conduct interview and grade does not comply with
the UML2 standard, there should be modeled an include relationship
instead.

In this approach, conduct interview extends grade, which means that it is


possible but not mandatory that during grade the use case conduct
interview is executed.

elearning.uml.ac.at/submitQuiz 20/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

Question 38: With which use cases does actor S communicate -


no matter if other actors are also involved?

Question 39: The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case B?

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

2/20/22, 12:17 PM UML Quiz - Result

How do you model the following situation with a


Question 40:
UML2 use case diagram:
A person goes for lunch. In the course of that it might be
necessary that the person withdraws cash from an ATM.

In this approach, go for lunch has to be executed every time withdraw


cash is executed.

In this approach, withdraw cash has to be executed every time go for


lunch is executed.

go for lunch inherits the behavior from withdraw cash.

withdraw cash inherits the behavior from go for lunch.

elearning.uml.ac.at/submitQuiz 22/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

In this approach, the arrow points in the wrong direction. withdraw cash
should extend go for lunch and not the other way round.

Question 41:The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case B?

Y∧Y∧Y

X∧X∧Y

Y∧Y

X∧X∧X

(X ∨ Y) ∧ Y

X∧Y∧Y

X∧X

X∧Y

Question 42:The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case G?

elearning.uml.ac.at/submitQuiz 23/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

R∧R

S∧S

R∧S

R∧U

Question 43: The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case A?

Y∧Y∧Y

X∧Y∧Y

X∧X∧X

Y∧Y

X∧X∧Y

X∧X

X∧Y

Question 44: With which use cases does actor S communicate -


no matter if other actors are also involved?

elearning.uml.ac.at/submitQuiz 24/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result


D

Question 45:Which of the following use cases are correct use


cases when you want to design a use case diagram for an
online book shop?
Look for a book

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.

Enter credit card details


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 enter his credit card details. Entering
the credit card details might be one single step within the use case Order a
book.

Order a book

Enter book title


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 enter the title of a book. Entering the
title of a book might be one single step within the use case Order a book or
Search for a book.

Do not order a book


Use cases describe ways the user can interact with the system to gain a
certain value. Use cases do not describe things the user does not do with
the system (if you do not order a book, nothing happens).

Cancel order

Question 46: The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case D?

T∧S

elearning.uml.ac.at/submitQuiz 25/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

T∧T

R∧T

R∧R

S∧S

R∧S

Question 47:How do you model the following situation with a


UML2 use case diagram:
The lab director does a lab test together with his assistant. The
assistant always has to write a protocol during the lab test.

In this approach, it is possible but not mandatory that write protocol is


executed during do lab test.

In this approach the arrow points into the wrong direction, do lab test
includes write protocol, not the other way round.

In this approach, it is possible that do lab test is executed during write


protocol.

elearning.uml.ac.at/submitQuiz 26/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

Question 48:The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case A?

X∧X

X∧Y∧Y

X∧X∧X

X∧X∧Y

Y∧Y∧Y

Y∧Y

X∧Y

Question 49: The use case diagram ...


... specifies the functional decomposition of a system.

... models the time flow within a system.

... specifies who performs which tasks with a system that is going to be
developed.
... comprises actors and use cases.

Question 50: How do you model the following situation with a


UML2 use case diagram:
To conduct an exam, one student and at least one teacher are
necessary.

elearning.uml.ac.at/submitQuiz 27/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

In this approach, conduct exam can be done by zero to an infinite number


of students and teachers.

In this approach, conduct exam can be executed with no teacher.

Question 51: The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case K?

U∧R

U∧U∧U

U∧U

S∧R∧U

R∧U∧U

Question 52: Actors in a use case diagram ...


... are always located within the described system.
Actors are outside the described system and interact with the system.

... interact with the system in the form of <<include>>-relationships.


They interact with the system via so-called associations.

elearning.uml.ac.at/submitQuiz 28/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result


... represent roles of the users of the described system.

... might use the described system.

... interact with the described system.

... can be linked to abstract and non-abstract use cases via associations.

... can be linked to each other by inheritance.

... might be used by the described system.

... communicate with use cases and other actors.


An actor cannot communicate with other actors.

Question 53: How do you model the following situation with a


UML2 use case diagram:
Student data is requested by either institute staff or
administration staff.

In this approach, request student data is done by admin staff and


(institute staff or admin staff) together (since admin staff is a
special kind of institute staff.

In this approach, also university staff can do request student data.

In this approach, request student data is done by institute staff and


admin staff together.

elearning.uml.ac.at/submitQuiz 29/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

Question 54: Which of the following statements about the given


diagram clipping are true?

A and B can execute Y seperately.

A or B can execute Z.

Z inherits from Y, it is a specialised Y and can be executed by sub actors


(descendants) of X. A and B inherit the behavior of X, they are specialised
X and can execute Y.
A and B execute Y together.
A and B inherit the behavior of X, they are specialised X and can execute Y
instead of X.

How do you model the following situation with a


Question 55:
UML2 use case diagram:
A man and a woman go for a walk.

go for a walk is executed by man, woman or an actor named both.

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.

go for a walk is executed by man or woman.

elearning.uml.ac.at/submitQuiz 30/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

In this approach, woman goes for a walk with man or woman, because woman is
a specialisation of man.

Question 56: With which use cases does actor R communicate -


no matter if other actors are also involved?

Question 57: How do you model the following situation with a


UML2 use case diagram:
A mother cooks dinner together with her daughter. In the course
of that, the mother also always has to mix the cocktails.

mother or daughter do mix cocktails.

elearning.uml.ac.at/submitQuiz 31/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

If you model strictly according to UML2 standard, nobody executes the use
case mix cocktails.

In this approach it is possible that two mothers or two daughters do cook


dinner.
Additionally, if you model strictly according to UML2 standard, nobody
executes the use case mix cocktails.

Question 58:The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors
communicate with Use Case A?

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

2/20/22, 12:17 PM UML Quiz - Result

X∧X

Question 59: How do you model the following situation with a


UML2 use case diagram:
A mechanic does a car service. During that service, it might be
necessary to change the break unit.

In this approach, the mechanic always has to change brake unit, when
he does do car service.

In this approach, every time do car service is executed change brake


unit also has to be executed.

In this approach, change brake unitinherits the behavior from 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

2/20/22, 12:17 PM UML Quiz - Result

Question 60: How do you model the following situation with a


UML2 use case diagram:
A repair can be made by a master, a trainee or any other repair
shop employee.

In this approach, the repair is done by a trainee together with a master or


another trainee, because trainee is a specialisation of master).

In this approach, master and trainee have to do make repair together.

In this approach, make repair can only be done by a master or a trainee,


but not by any other employee.

In this approach, master, trainee and other employee have to do the


repair together.

Question 61: The following Use Case Diagram was modeled


according to UML2 standard. Which combinations of actors

elearning.uml.ac.at/submitQuiz 34/35
Downloaded by Ái Trân (aitran.le24@gmail.com)
lOMoARcPSD|38004664

2/20/22, 12:17 PM UML Quiz - Result

communicate with Use Case A?

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

© 2022 Business Informatics Group, Vienna University of Technology

elearning.uml.ac.at/submitQuiz 35/35
Downloaded by Ái Trân (aitran.le24@gmail.com)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy