Exam 11: Advanced Object-Oriented Programming Features

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

The base default constructor is called by ____.

(Multiple Choice)
4.8/5
(28)

Multiple inheritance is not possible in C#; ____ provides the closest work around to this because a class can implement multiple ____.

(Multiple Choice)
4.8/5
(34)

To override a method, the base method may include any of the following keywords, EXCEPT ____.

(Multiple Choice)
4.8/5
(41)

Partial classes enable a class to be split into two or more files and combined when the application is compiled and ran.

(True/False)
4.9/5
(35)

If you do not want subclasses to be able to provide new implementation details, you can add the keyword ____ to methods. Doing so keeps derived classes from being able to override the method.

(Multiple Choice)
4.8/5
(41)

____ classes cannot be instantiated. ____ classes cannot be inherited.

(Multiple Choice)
4.9/5
(38)

A stack represents a simple ____________ collection.

(Short Answer)
4.9/5
(45)

With C#, you have single inheritance, but a class can ____________ multiple interfaces.

(Short Answer)
4.8/5
(34)

When you have a method that has the same name in both the base and derived classes, use the keyword super to refer to the method in the base class.

(True/False)
4.8/5
(38)

Both var and ____________ enables developers to not associate a specific data type to the actual data when the memory declaration for the variable is written.

(Short Answer)
4.9/5
(43)

Generics enable you to identify where data will change in the code segment by putting a placeholder in the code for the type parameters.

(True/False)
4.7/5
(37)

Software components often take the form of classes or collections of methods.

(True/False)
4.8/5
(36)

Components are implemented in C# through ____.

(Multiple Choice)
4.9/5
(32)

public​ class A : B, C Which of the following statements is TRUE regarding the above declaration?

(Multiple Choice)
4.7/5
(26)

Variables declared as dynamic ____.

(Multiple Choice)
4.8/5
(44)

You can think of an interface as a class that is totally ____________.

(Short Answer)
4.9/5
(40)

Use the ____ keyword to mark a class so that it can be used only as the base class from which other classes can be derived.

(Multiple Choice)
4.8/5
(32)

If a class implements more than one ____________, they all appear on the class definition line separated by commas.

(Short Answer)
4.9/5
(42)

An overloaded method must have exactly the same signature as the method it is overriding.

(True/False)
4.9/5
(30)

____________ allows you to create a general class and then define specialized classes that have access to the members of the general class.

(Short Answer)
4.7/5
(38)
Showing 21 - 40 of 75
close modal

Filters

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