Professional Documents
Culture Documents
E2.1 - CPSC 210 - PrairieLearn PDF
E2.1 - CPSC 210 - PrairieLearn PDF
E2.1 - CPSC 210 - PrairieLearn PDF
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
An object of actual type Shoop can be passed into a parameter of apparent type Eggs. Select diagrams in which
this MUST be true.
<<interface>>
Smurf
(a)
<<interface>>
Shoop
Eggs
Ham
Shoop
<<abstract>>
(b) Smurf
Eggs
<<abstract>>
(c) Eggs
Shoop
<<abstract>>
(d) Shoop
Eggs
Shoop
<<abstract>>
(e) Eggs
Smurf
<<interface>> <<interface>>
(f) Shoop Eggs
<<interface>> <<interface>>
(g) Shoop
Eggs Smurf
<<interface>>
Smurf
(h) Shoop
<<abstract>>
Ham
Eggs
Ham
<<interface>>
(i) Shoop
Eggs
Smurf
<<interface>> <<interface>>
Shoop
(j) Shoop
Smurf Eggs
<<abstract>>
(k) Shoop
Eggs
Correct answer
Part 1
(g)
<<interface>> <<interface>>
Shoop
Eggs Smurf
(h)
<<interface>>
Smurf Eggs
<<abstract>>
Shoop Ham
(i)
Ham
<<interface>>
Shoop
Eggs
Smurf
(j)
<<interface>> <<interface>>
Shoop
Smurf Eggs
(k)
<<abstract>>
Shoop
Eggs
Submitted answer
5 hide
Submitted at 2022-11-07 18:56:24 (PST) 20%
Part 1
(k)
<<abstract>>
Shoop
Eggs
20%
Submitted answer
4 show
Submitted at 2022-11-07 18:55:50 (PST) saved, not graded
Submitted answer
3 show
Submitted at 2022-11-07 18:55:33 (PST) saved, not graded
Exam 2
Assessment overview
Question
Submission status: 20%
Total points: 3 /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.