Exam 12: Object-Oriented Programming: Polymorphism

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

If a class leaves one method in an interface undeclared,the class is implicitly declared by C# as an abstract class.

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

False

Polymorphism helps promote software extensibility.

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

True

Which is used to specify that a class will be implementing an interface

Free
(Multiple Choice)
5.0/5
(30)
Correct Answer:
Verified

B

Polymorphism enables objects of different classes that are related by a class hierarchy to be processed generically.

(True/False)
4.9/5
(35)

Declaring an interface protected allows for extra security precautions.

(True/False)
4.9/5
(40)

The abstract keyword has the same effect as the virtual keyword.

(True/False)
4.9/5
(31)

If the base class contains only abstract method declarations,the base class is used for:

(Multiple Choice)
5.0/5
(31)

Abstract classes can provide data and services for objects.

(True/False)
4.8/5
(35)

Polymorphism allows for specifics to be dealt with during:

(Multiple Choice)
4.7/5
(33)

Attempting to instantiate an object of an abstract class is a logic error.

(True/False)
4.8/5
(32)

Polymorphism allows classes to be added with little or no modifications to the generic portion of a program.

(True/False)
4.8/5
(32)

All of the following methods are implicitly sealed except:

(Multiple Choice)
4.8/5
(37)

The major drawback to polymorphically designed programs is that they do not take into account the future addition or deletion of classes.

(True/False)
4.8/5
(37)

All static and private methods are implicitly sealed.

(True/False)
4.7/5
(39)

Polymorphism allows you to command a wide variety of objects even if you do not know the objects' types.

(True/False)
4.9/5
(31)

The abstract methods and properties of a class do not provide an implementation.

(True/False)
4.9/5
(28)

Which declaration declares abstract method method1 in abstract class Class1 (method1 returns an int and takes no arguments)

(Multiple Choice)
4.9/5
(34)

A convention of the UML is to denote the name of an abstract class in:

(Multiple Choice)
4.8/5
(38)

Every object in C# knows its own class and can access this information through method

(Multiple Choice)
4.9/5
(33)

Interfaces can have methods.

(Multiple Choice)
5.0/5
(41)
Showing 1 - 20 of 62
close modal

Filters

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