Question
QUESTION 1 What relationship is depicted in diagram (a) between wheel and vehicle a. Many wheels (greater than 0) to many vehicles (greater than 0)
QUESTION 1
What relationship is depicted in diagram (a) between wheel and vehicle
a.
Many wheels (greater than 0) to many vehicles (greater than 0)
b.
One wheel to one vehicle
c.
Many wheels (or no wheels) to one vehicle
d.
Many wheels (at least one wheel) to one vehicle
QUESTION 2
Which of the following is true for diagram (b)? Select only one answer.
a.
A Country is not required to have a HeadOfState
b.
A Head of State is not required to have a Country
c.
A Head of State can be a leader for more than 1 country
d.
All of the above are true
QUESTION 3
Which of the following is true for diagram (c)? Select only one answer.
a.
A member can rent more than one RentableItem
b.
The Rental Class is independent of RentableItem and Member
c.
The purpose of the Rental class is to detect those RentableItems that are not rented by any Members
d.
b and c are both correct
QUESTION 4
Which of the following is true for diagram (a)? Select only one answer.
a.
PlayingRecord is not a required class
b.
A SportGame object should be declared within Player as private data field (i.e., this is the best implementation solution)
c.
positionPlayed is an attribute that could be stored with the Player class
d.
Three classes should be implemented from this diagram
QUESTION 5
Suppose there are 3 Guest objects that stay in 3 different HotelRoom objects on different dates. Assume only one Guest associated with one HotelRoom on a specific date. How many Stay objects should be created? (Use diagram c) Select only one answer.
a.
6
b.
9
c.
3
d.
Cannot determine without more information
QUESTION 6
Which of the following is true for diagram (d)? Select only one answer.
a.
A course must have at least one pre-requisite
b.
There must be a separate PreRequisite class created
c.
An ArrayList could be used when implementing the Course class
d.
a and c are both correct
QUESTION 7
Is it true for a Course that is a pre-requisite for some other course to not have any pre-requisites of its own? (diagram d)
a.
Yes
b.
No
QUESTION 8
How many classes should (i.e., best solution) be specified by diagram c?
a.
3
b.
2
c.
1
d.
4
Questions 1- 3 uses the following diagrams: Vehicle Wheel Country HeadOfState thoh Rentableltem Rental MemberStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started