Exam 12: Object-Oriented Programming: Polymorphism
Exam 1: Introduction to Computers, the Internet and Visual C#49 Questions
Exam 2: Dive Into Visual Studio Community25 Questions
Exam 3: Introduction to C# Apps41 Questions
Exam 4: Introduction to Classes,Objects,Methods and Strings50 Questions
Exam 5: Control Statements: Part 194 Questions
Exam 6: Control Statements: Part 266 Questions
Exam 7: Methods: a Deeper Look95 Questions
Exam 8: Arrays;Introduction to Exception Handling90 Questions
Exam 9: Introduction to Linq and Generic Collections27 Questions
Exam 10: Classes and Objects: A Deeper Look79 Questions
Exam 11: Object-Oriented Programming: Inheritance51 Questions
Exam 12: Object-Oriented Programming: Polymorphism62 Questions
Exam 13: Exception Handling: A Deeper Look58 Questions
Exam 14: GUI With Windows Forms: Part 164 Questions
Exam 15: GUI With Windows Forms: Part 273 Questions
Exam 16: Strings,Characters and Regular Expressions92 Questions
Exam 17: Files and Streams39 Questions
Exam 18: Searching and Sorting19 Questions
Exam 19: Data Structures28 Questions
Exam 20: Generics22 Questions
Exam 21: Collections35 Questions
Exam 22: Databases and LING25 Questions
Exam 23: Asynchronous Programming With Async and Await37 Questions
Exam 24: XML72 Questions
Exam 25: GUI With Windows Presentation Foundation60 Questions
Select questions type
If a method needs to be called polymorphically,what type of reference should be used to point to the object that the method is being called with
(Multiple Choice)
4.8/5
(37)
Unfortunately,polymorphic programs make it difficult to add new capabilities to a system.
(True/False)
4.9/5
(34)
Classes and methods are declared sealed for all of the following reasons,except:
(Multiple Choice)
4.8/5
(40)
You may define implementations for abstract methods to act as default implementations.
(True/False)
4.7/5
(41)
A class that implements an interface but does not declare all of the interface's methods must be declared:
(Multiple Choice)
4.7/5
(27)
If a derived class reference is assigned to a base class variable,the variable must be cast back to the derived class before any derived class methods can be called with it.
(True/False)
4.8/5
(30)
Consider the abstract class below:
Public abstract class Foo
{
Private int a;
Public int b;
Public Foo(int aVal,int bVal)
{
A = aVal;
B = bVal;
}
Public abstract int calculate();
}
Any concrete subclass that extends class Foo:
(Multiple Choice)
4.8/5
(27)
When a request is made to use a derived-class-object method through a base-class reference,C# polymorphically chooses the correct overridden method in the appro
priate derived class that's associated with the object.
(True/False)
4.9/5
(35)
An interface reference may invoke only the methods that the interface declares.
(True/False)
4.8/5
(29)
A class that implements an interface may not act as a base class for other classes.
(True/False)
4.8/5
(40)
Which statement best describes the relationship between base class and derived class types
(Multiple Choice)
4.9/5
(32)
Polymorphism allows the addition of classes providing they were at least considered during program development.
(True/False)
4.7/5
(34)
Polymorphism specifically enables the creation of programs that handle:
(Multiple Choice)
4.8/5
(37)
An abstract class cannot have instance data and non-abstract methods.
(True/False)
4.8/5
(29)
Which of the following characteristics could be used to create an interface for a file,a cat and a house
(Multiple Choice)
4.8/5
(34)
Showing 41 - 60 of 62
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)