Question 62 / 90:  In the following code segment, what is the multiplicity between the Album class and the Picture class?
public class Album {

Picture[] picures;

public Store() }

pictures = new Picture[3];

pictures[0] = new Picure();

pictures[1] = new Picure();

pictures[2] = new Picure();

}

}

A  One-to-one
B  One-to-many
C  Many-to-many
D  Many-to-most
<< First < Previous Next > Last >>
Explanation:

B. One Album object contains three Picture objects: one-to-many.

A, C and D are incorrect.

A is incorrect because the array being contained in Album means this is a many relationship on at least one side.

C is incorrect because this answer is impossible since the relationship is a composition.

A composition association cannot be many-to-many.

D is incorrect as there is no such thing as a many-to-most multiplicity.

Exam Home Page
https://www.jobilize.com/quiz-my-oca-mock-exam-by-mike-wolf

My OCA Mock

Author:

Access: Public Instant Grading

Ask
Saylor Foundation
Start Quiz
Rachel Carlisle
Start Quiz
George Turner
Start Quiz
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/quiz-my-oca-mock-exam-by-mike-wolf" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>