Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Question 2: Fielding a UML Question

Each of the following questions describes a scenario and then presents a series of UML diagrams.
Select all the
diagrams that correspond to the scenario. Note that scenarios may ask you to select
the diagrams in which the
scenario must be true or the ones in which the
scenario may be true.
Part 1
Wug has a field whose type is Hoge, which is not null after Wug's constructor completes. Select diagrams in which
this MUST be true.
Notes:
We consider a Wug object to have a field, whether or not that field is visible to the Wug object.
Assume each class has the simplest fields needed for its associations in the diagram.
Wug and Hoge may have relationships with classes/interfaces besides those shown in the diagram.

(a) Hoge Wug

(b) Wug Newco Hoge

(c) Wug Newco Hoge

<<abstract>>
(d) Wug
Hoge

<<interface>> <<interface>>
(e) Hoge Wug

<<abstract>>
(f) Wug
Hoge

<<interface>>
(g) Wug Newco
0..1 Hoge

<<abstract>> <<abstract>>
(h) Wug 0..1 Hoge

<<abstract>> <<interface>>
(i) Wug Hoge

<<abstract>> <<interface>>
(j) Wug 1..∗ Hoge

<<interface>>
(k) Wug
Hoge

Select all possible options that apply.


50%

This question is complete and cannot be answered again.

Correct answer

Part 1
(b)
Wug Newco Hoge

(c)
Wug Newco Hoge

(d)
<<abstract>>
Wug
Hoge

(i)
<<abstract>> <<interface>>
Wug Hoge

Submitted answer
12 hide
Submitted at 2022-11-07 19:01:53 (PST) 50%

Part 1
(c)
Wug Newco Hoge

(d)
<<abstract>>
Wug
Hoge

50%

Submitted answer
11 show
Submitted at 2022-11-07 19:01:39 (PST) saved, not graded

Submitted answer
10
saved, not graded show
Submitted at 2022-11-07 19:01:03 (PST)

Show/hide older submissions

Exam 2
Assessment overview

Question
Submission status: 50%
Total points: 7.5 /15
Auto-graded question
Report an error in this question

Previous question Next question

Attached files
No attached files
Attachments can't be added or deleted because the assessment is closed.

You might also like