Exam 11: Classes Continued
Exam 1: Background49 Questions
Exam 2: First Java Programs47 Questions
Exam 3: Syntax, Errors, and Debugging46 Questions
Exam 4: Introduction to Control Statements47 Questions
Exam 5: Using Classes and Objects in Media Computing47 Questions
Exam 6: Introduction to Defining Classes46 Questions
Exam 7: Control Statements Continued47 Questions
Exam 8: Improving the User Interface45 Questions
Exam 9: Introduction to Html and Applets45 Questions
Exam 10: Introduction to Arrays47 Questions
Exam 11: Classes Continued46 Questions
Exam 12: Arrays Continued47 Questions
Exam 13: Recursion, Complexity, and Searching and Sorting47 Questions
Exam 14: Introduction to Collections43 Questions
Exam 15: Multithreading, Networks, Clientserver Programming47 Questions
Select questions type
Identify the letter of the choice that best matches the phrase or definition.
a.Dependency
b.Extension
c.Overriding
d.Aggregation
e.Inheritance
-When an object's class is a subclass of a more general class.
Free
(Essay)
4.8/5
(43)
Correct Answer:
E
In Java, all classes are part of an immense hierarchy, with the class ____________________ at the root.
Free
(Short Answer)
4.8/5
(37)
Correct Answer:
Object
When information needs to be shared among all instances of a class, that information can be represented in terms of ____________________ variables.
Free
(Short Answer)
4.8/5
(36)
Correct Answer:
static
Identify the letter of the choice that best matches the phrase or definition.
a.Dependency
b.Extension
c.Overriding
d.Aggregation
e.Inheritance
-When the subclass method is intended as a replacement of the superclass method.
(Essay)
4.8/5
(33)
An abstract class is one that will not be instantiated. ____________________
(True/False)
4.8/5
(46)
FIGURE 11-1
-Figure 11-1 above shows an example of a ____ hierarchy.

(Multiple Choice)
4.9/5
(35)
A subclass often has methods that do not appear in its superclass.
(True/False)
5.0/5
(32)
A class variable belongs to an object and is allocated storage when the object is created.
(True/False)
4.9/5
(39)
Classes that are related by inheritance have a has-a relationship. ____________________
(True/False)
4.7/5
(43)
____ provides a mechanism for reusing code and can reduce the effort required to implement a new class.
(Multiple Choice)
4.9/5
(33)
Identify the letter of the choice that best matches the phrase or definition.
a.Dependency
b.Extension
c.Overriding
d.Aggregation
e.Inheritance
-When an object of one class contains objects of another class as structural components.
(Essay)
4.9/5
(40)
A class method is activated when a message is sent to the class rather than the object. ____________________
(True/False)
4.8/5
(33)
Characteristics common to several classes can be collected in a common abstract subclass. ____________________
(True/False)
4.7/5
(29)
The most general type of array is one whose element type is ____.
(Multiple Choice)
4.9/5
(36)
When you declare a variable, it should have a different interface name from the type name.
(True/False)
4.9/5
(48)
In general, a static variable is used in any situation in which all instances share a common data value.
(True/False)
4.8/5
(39)
Showing 1 - 20 of 46
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)