Question
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
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 4 - 8 Uses the tollowing diagrams SportGame PlayingRecord positonPlayed goalsScored timeOnField Spectator Ticket seatNumber ticketNumber price dateBought Guest Stay dateArrived plannedDepartureDate roomRateStep 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