Exam 10: Object-Oriented Programming: Inheritance

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which of the following pairs demonstrates the "has-a" relationship?

Free
(Multiple Choice)
4.7/5
(33)
Correct Answer:
Verified

B

The default implementation of method ToString of Object returns a String representing ________.

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

C

To call the base-class default constructor explicitly,the call to a base-class constructor must be the first statement in the derived-class-constructor definition.

Free
(True/False)
4.8/5
(38)
Correct Answer:
Verified

False

A class that implements an interface may not act as a base class for other classes.

(True/False)
4.8/5
(34)

A base class may have only one derived class.

(True/False)
4.8/5
(38)

The MustOverride keyword has the same effect as the Overridable keyword.

(True/False)
4.9/5
(40)

Abstract classes are classes which may not be:

(Multiple Choice)
4.8/5
(33)

The class hierarchy begins with class __________.

(Multiple Choice)
4.7/5
(39)

All objects of a class are guaranteed to provide the functionality described by any interface that the class implements.

(True/False)
4.9/5
(37)

The use of polymorphism helps promote software extensibility.

(True/False)
4.9/5
(37)

__________ is a form of xe "code reuse"xe "software reuse"software reuse in which a new class is created quickly and easily by absorbing an existing class's members and customizing them with new or modified capabilities.

(Multiple Choice)
4.8/5
(34)

Polymorphism enables you to conveniently xe "program in the general"program "in the general" rather than "xe "program in the specific"in the specific."

(True/False)
4.8/5
(28)

Which of the following properties could exist in an interface for files,cats and houses?

(Multiple Choice)
4.9/5
(32)

Polymorphism involves:

(Multiple Choice)
4.8/5
(45)

Classes which may be instantiated are ___________ classes.

(Multiple Choice)
4.8/5
(36)

Which of the following pairs demonstrates the "is-a" relationship?

(Multiple Choice)
4.7/5
(34)

You may define implementations for abstract methods to act as a default.

(True/False)
4.9/5
(28)

Which of the following could be a base class for class Computer?

(Multiple Choice)
4.8/5
(33)

Assigning a derived class reference to a base class variable is safe:

(Multiple Choice)
4.9/5
(36)

Every class in Visual Basic except __________ extends an existing class.

(Multiple Choice)
4.9/5
(27)
Showing 1 - 20 of 82
close modal

Filters

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