Exam 12: Object-Oriented Design
Exam 1: Introduction96 Questions
Exam 2: Fundamental Data Types103 Questions
Exam 3: Decisionseasy99 Questions
Exam 4: Loops100 Questions
Exam 5: Methods94 Questions
Exam 6: Arrays and Arraylists100 Questions
Exam 7: Inputoutput and Exception Handling100 Questions
Exam 8: Objects and Classes101 Questions
Exam 9: Inheritance and Interfaces99 Questions
Exam 10: Graphical User Interfaces54 Questions
Exam 11: Advanced User Interfaces91 Questions
Exam 12: Object-Oriented Design100 Questions
Exam 13: Recursion100 Questions
Exam 14: Sorting and Searching99 Questions
Exam 15: The Java Collections Framework100 Questions
Exam 16: Basic Data Structures94 Questions
Exam 17: Tree Structures100 Questions
Exam 18: Generic Classes78 Questions
Exam 19: Streams and Binary Inputoutput82 Questions
Exam 20: Multithreading82 Questions
Exam 21: Internet Networking74 Questions
Exam 22: Relational Databases75 Questions
Exam 23: XML74 Questions
Exam 24: Web Applications74 Questions
Select questions type
Which of the following code snippets denotes that the Pen class depends on the Ink class?
Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
C
Which of the following statements will correctly put the Auto class into a package named VehiclePkg?
Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
C
Given the following diagram showing class relationships:
What type of relationship is shown between LineItem and Product?

Free
(Multiple Choice)
4.9/5
(31)
Correct Answer:
C
Which of the following most likely indicates that you have chosen a good name for your class?
(Multiple Choice)
5.0/5
(28)
In a UML diagram, the relationship symbol shown below denotes ____. 

(Multiple Choice)
4.8/5
(38)
You are designing a software solution for a veterinary clinic. The clinic provides various services for each pet on each visit. You have decided that the following nouns apply to the requirements: Customer, Address, Pet, Visit, Visit Date, Service Charge, Total Charge, Next Appointment. Which of these should be represented as classes?
(Multiple Choice)
4.8/5
(33)
When using the CRC method, if you determine that a class cannot carry out a particular task by itself and needs the help of another class to complete the task, you should ____.
(Multiple Choice)
4.8/5
(33)
Which statement correctly describes the class relationship shown in this diagram? 

(Multiple Choice)
4.8/5
(40)
Consider the following code snippet:
Public class Motorcycle
{
Private Tire[] tires;
) . .
}
This code is best described as an example of ____.
(Multiple Choice)
4.9/5
(40)
Why is it generally considered good practice to minimize coupling between classes?
(Multiple Choice)
4.9/5
(31)
Which of the following code snippets denotes that the Purse class depends on the Wallet class?
(Multiple Choice)
4.8/5
(41)
In a UML diagram, the relationship symbol shown below denotes ____. 

(Multiple Choice)
4.8/5
(39)
A CashRegister class contains an array list of Coin objects. This is best described as an example of ____.
(Multiple Choice)
4.7/5
(38)
A/an ____ represents a set of objects with the same behavior.
(Multiple Choice)
5.0/5
(30)
When designing classes, if you find classes with common behavior you should ____.
(Multiple Choice)
4.8/5
(36)
During the implementation phase, which of the following statements is true?
(Multiple Choice)
4.8/5
(43)
After you have identified a set of classes needed for a program, you should now ____.
(Multiple Choice)
4.8/5
(36)
The textbook recommends a five-part program development process consisting of the following activities:
I Use UML diagrams to record class relationships.
II Gather requirements.
III Implement the program.
IV Use CRC cards to identify classes.
V Use javadoc to document method behavior.
Which is the correct order in which these activities should be completed?
(Multiple Choice)
4.9/5
(39)
Showing 1 - 20 of 100
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)