Exam 12: Object-Oriented Design
Exam 1: Introduction98 Questions
Exam 2: Using Objects76 Questions
Exam 3: Implementing Classes103 Questions
Exam 4: Fundamental Data Types125 Questions
Exam 5: Decisions120 Questions
Exam 6: Loops128 Questions
Exam 7: Arrays and Array Lists118 Questions
Exam 8: Designing Classes95 Questions
Exam 9: Inheritance101 Questions
Exam 10: Interfaces85 Questions
Exam 11: Inputoutput and Exception Handling109 Questions
Exam 12: Object-Oriented Design104 Questions
Exam 13: Recursion110 Questions
Exam 14: Sorting and Searching109 Questions
Exam 15: The Java Collections Framework110 Questions
Exam 16: Basic Data Structures104 Questions
Exam 17: Tree Structures110 Questions
Exam 18: Generic Classes75 Questions
Exam 19: Graphical User Interfaces76 Questions
Exam 20: Streams and Binary Inputoutput82 Questions
Exam 21: Multithreading82 Questions
Exam 22: Internet Networking74 Questions
Exam 23: Relational Databases75 Questions
Exam 24: XML74 Questions
Exam 25: Web Applications75 Questions
Select questions type
Which of the following code snippets denotes that the Kitchen class depends on the Stove class?
(Multiple Choice)
4.9/5
(38)
Select a code segment to complete the Name class, so that it reflects a dependency relationship between Name and String. public class Name ___________________________
(Multiple Choice)
4.8/5
(33)
Which of the following code snippets denotes that the Kitchen class aggregates the Dish class?
(Multiple Choice)
4.9/5
(32)
Which of the following would be an appropriate name for a game-related class?
(Multiple Choice)
4.8/5
(36)
Consider the following code snippet: public class Motorcycle extends Vehicle
{
Private Tire[] tires;
) . .
}
This code is best described as an example of ____.
(Multiple Choice)
4.9/5
(33)
Which statement correctly describes the class relationship shown in this diagram? 

(Multiple Choice)
4.8/5
(36)
Which of the following is the most important consideration when designing a class?
(Multiple Choice)
4.8/5
(32)
A class (ClassOne) is considered to have a dependency on another class (ClassTwo) under which of the following conditions?
(Multiple Choice)
4.9/5
(42)
Which of the following most likely indicates that you have chosen a good name for your class?
(Multiple Choice)
4.9/5
(28)
Given the following diagram showing class relationships:
What type of relationship is shown between Invoice and Address?

(Multiple Choice)
4.8/5
(34)
Consider the following code snippet: public class SailBoat extends Vessel
{
Private Engine[] engines;
Private Sail mainsail;
) . .
}
Which of the following statements is NOT correct?
(Multiple Choice)
4.9/5
(42)
How does a UML diagram denote classes and their attributes and methods?
(Multiple Choice)
4.7/5
(36)
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.9/5
(41)
Which of the followings statements about class relationships is correct?
(Multiple Choice)
4.8/5
(37)
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.8/5
(38)
Which of the following statements about class attributes is true?
(Multiple Choice)
4.8/5
(40)
In general, you need ____ when an object needs to remember another object between method calls.
(Multiple Choice)
4.8/5
(36)
If you have parallel arrays or array lists of the same length which each store a part of what could be considered an object, ____.
(Multiple Choice)
4.9/5
(42)
Showing 81 - 100 of 104
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)