E2.1 - CPSC 210 - PrairieLearn PDF

You might also like

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

Question 1: Passing through UML

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

Select all possible options that apply.


20%

This question is complete and cannot be answered again.

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

Show/hide older submissions

Exam 2
Assessment overview

Question
Submission status: 20%
Total points: 3 /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