KARABUK UNIVERSITY
Computer Engineering Department
CPE 310 Software Engineering
Lab#9
Requirements Modeling
Scenario-based methods: User Case Diagrams-Quiz Questions
Hasan Kivrak
How do you model the following situation with a use case diagram:
Father and son cook dinner. In the course of that, one of them always has to load the dishwasher.
a) b)
father and son execute
only the son does the load dishwasher together.
cooking.
c) d)
nobody does load
dishwasher.
How do you model the following situation with a 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.
a) b)
oral exam includes examg, which
means that it is mandatory that
during oral exam the use case
exam is executed. That is not what
we want.
c) d)
oral exam inherits all associations the only actor
from exam. Thus in this approach communicating
two actors teacher and two actors with oral exam is
student would be needed for the professor.
oral exam.
How do you model the following situation with a 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.
a) b) the arrow between conduct
interview and grade does
grade inherits the behavior
●
not comply with the UML2
from conduct interview. standard, there should be
Thus grade is a modeled an include
specialisation from conduct relationship instead.
interview.
conduct interview
extends grade, which
c) d) means that it is possible
but not mandatory that
during grade the use
case conduct interview
is executed.
Which of the following statements true for the use case
diagram?
❏ specifies who performs which tasks with a system that is going to be developed.
❏ specifies the functional decomposition of a system.
❏ comprises actors and use cases.
❏ models the time flow within a system.
Which of the following statements true?
Actors in a use case diagram ...
❏ interact with the system in the form of <<include>>-relationships.
They interact with the system via so-called associations.
❏ represent roles of the users of the described system.
❏ might be used by the described system.
❏ interact with the described system.
❏ communicate with use cases and other actors.
An actor cannot communicate with other actors.
❏ can be linked to each other by inheritance.
❏ are always located within the described system.
Actors are outside the described system and interact with the system.
Which of the following statements about the given diagram clipping are true?
❏ A inherits all of B's associations.
❏ A can execute the same use cases as B.
❏ B can execute the same use cases as A.
❏ B inherits all of A's associations.
Which of the following statements about the given diagram clipping are true?
❏ A or B can execute Z.
❏ A and B can execute Y seperately.
❏ 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.
❏ 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.
Good luck with your exam!