Exam 17: Object-Oriented Design

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The reserved word ______ represents a reference that does not point to a valid object.

Free
(Short Answer)
5.0/5
(37)
Correct Answer:
Verified

null

What is an aggregate object?

Free
(Short Answer)
5.0/5
(30)
Correct Answer:
Verified

An aggregate object is an object that is made up of other objects.

A reference variable can refer to any object created from any class related to it by ___________.

Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
Verified

C

What are constructors used for? How are they defined?

(Essay)
4.8/5
(35)

A polymorphic reference uses the type of the reference, not the type of the object, to determine which version of a method to invoke.

(True/False)
4.8/5
(40)

Instance variables should be declared with public visibility to promote encapsulation.

(True/False)
5.0/5
(37)

How is overriding related to polymorphism?

(Essay)
4.8/5
(40)

Inheritance can be applied to interfaces, so that one interface can be derived from another interface.

(True/False)
4.8/5
(31)

Interfaces allow us to make ______ references, in which the method that is invoked is based on the particular object being referenced at the time.

(Short Answer)
4.9/5
(41)

Errors and exceptions represent unusual or invalid processing.

(True/False)
4.7/5
(35)

If an exception is not caught and handled where it occurs, it is ______ to the calling method.

(Short Answer)
4.7/5
(45)

Each _______ clause on a try statement handles a particular kind of exception that may be thrown within the try block.

(Multiple Choice)
4.9/5
(41)

An object reference variable stores the ______ of an object.

(Short Answer)
4.8/5
(42)

A child class can _________ (redefine) the parent's definition of an inherited method.

(Multiple Choice)
4.9/5
(38)

Each object has a ____ and a set of ____.

(Short Answer)
4.7/5
(31)

Objects should be self-governing. Explain.

(Essay)
4.9/5
(39)

How are overloaded methods distinguished from each other?

(Essay)
4.8/5
(34)

Several references can refer to the same object. These references are ________ of each other.

(Multiple Choice)
4.8/5
(26)

A ______ reference can refer to different types of objects over time.

(Short Answer)
4.9/5
(45)

A parent's constructor can be invoked using the ______ reference.

(Short Answer)
4.9/5
(36)
Showing 1 - 20 of 54
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)