Exam 12: Object-Oriented Programming: Polymorphism

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

All methods in an abstract class are inherently abstract.

(True/False)
4.7/5
(39)

Concrete classes provide implementations for every method and property they define.

(True/False)
4.8/5
(33)

Which of the following does not complete the sentence correctly An interface.

(Multiple Choice)
4.8/5
(34)

A concrete class that implements an interface must define all methods and properties of that interface.

(True/False)
4.9/5
(39)

Which of the following statements about abstract base classes is true

(Multiple Choice)
4.7/5
(27)

All methods in a sealed class must be explicitly declared sealed.

(True/False)
4.8/5
(28)

________ code is the process by which the compiler replaces method calls with the code of a method to improve performance.

(Multiple Choice)
4.8/5
(35)

A(n)________ is best used for providing services that bring together objects of otherwise unrelated classes.

(Multiple Choice)
4.8/5
(30)

The purpose of an interface is to:

(Multiple Choice)
4.9/5
(35)

An abstract class may be derived from another abstract class.

(True/False)
4.9/5
(37)

Polymorphism involves:

(Multiple Choice)
4.8/5
(25)

Sealing methods allows the compiler to optimize the program by "inlining code."

(True/False)
4.7/5
(37)

Abstract classes may not be:

(Multiple Choice)
4.8/5
(31)

If an app needs to perform a derived-class-specific operation on a derived class object reference by a base class variable,the app must first cast the base class reference to a derived class reference through a technique known as _________.

(Multiple Choice)
4.8/5
(35)

An abstract base class can be used to declare references.

(True/False)
4.7/5
(37)

Operator is returns true if two matching types are being compared.

(True/False)
5.0/5
(29)

Declaring a method sealed means:

(Multiple Choice)
4.8/5
(41)

Objects of abstract base classes can be instantiated.

(True/False)
5.0/5
(38)

An interface is typically used in place of an abstract class when there is no default implementation to inherit.

(True/False)
4.9/5
(25)

An interface can not provide properties with get and set accessors.

(True/False)
4.8/5
(41)
Showing 21 - 40 of 62
close modal

Filters

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