Professional Documents
Culture Documents
E2.2 - CPSC 210 - PrairieLearn
E2.2 - CPSC 210 - PrairieLearn
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.
<<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
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)
Exam 2
Assessment overview
Question
Submission status: 50%
Total points: 7.5 /15
Auto-graded question
Report an error in this question
Attached files
No attached files
Attachments can't be added or deleted because the assessment is closed.