Exam 10: Object-Oriented Programming: Polymorphism
Exam 1: Introduction to Computers and Java44 Questions
Exam 2: Introduction to Java Applications34 Questions
Exam 3: Control Statements39 Questions
Exam 4: Control Statements27 Questions
Exam 5: Methods36 Questions
Exam 6: Arrays and Arraylists48 Questions
Exam 7: Introduction to Classes and Objects27 Questions
Exam 8: Classes and Objects: a Deeper Look27 Questions
Exam 9: Object Oriented Programming: Inheritance22 Questions
Exam 10: Object-Oriented Programming: Polymorphism30 Questions
Exam 11: Exception Handling27 Questions
Exam 12: Gui Components78 Questions
Exam 13: Graphics and Java 2D19 Questions
Exam 14: Fundamentals of Characters and Strings26 Questions
Exam 15: Files, Streams and Object Serialization26 Questions
Exam 16: Generic Collections41 Questions
Exam 17: Lambdas60 Questions
Exam 18: Recursion15 Questions
Exam 19: Searching, Sorting and Big O21 Questions
Exam 20: Generic Classes and Methods15 Questions
Exam 21: Custom Generic Data Structures17 Questions
Exam 22: GUI26 Questions
Exam 23: Concurrency54 Questions
Exam 24: Accessing Databases With JDBC35 Questions
Exam 25: JavaFX26 Questions
Select questions type
Consider classes A, B and C, where A is an abstract superclass, B is a concrete class that inherits from A and C is a concrete class that inherits from B. Class A declares abstract method originalMethod, implemented in class B. Which of the following statements is true of class C?
Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
D
A class that implements an interface but does not declare all of the interface's methods must be declared ________.
Free
(Multiple Choice)
4.9/5
(41)
Correct Answer:
C
Non-abstract classes are called ________.
Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
D
Which of the following does not complete the sentence correctly?
An interface .
(Multiple Choice)
4.7/5
(36)
Which statement best describes the relationship between superclass and subclass types?
(Multiple Choice)
4.8/5
(35)
Which of the following could be used to declare abstract method method1 in abstract class Class1 (method1 returns an int and takes no arguments)?
(Multiple Choice)
4.8/5
(37)
For which of the following would polymorphism not provide a clean solution?
(Multiple Choice)
4.7/5
(36)
The UML distinguishes an interface from other classes by placing the word "interface" in above the interface name.
(Multiple Choice)
4.8/5
(35)
Which of the following statements about abstract superclasses is true?
(Multiple Choice)
4.9/5
(30)
Consider the abstract superclass 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.9/5
(39)
Which keyword is used to specify that a class will define the methods of an interface?
(Multiple Choice)
4.9/5
(24)
When a superclass variable refers to a subclass object and a method is called on that object, the proper implementation is determined at execution time. What is the process of determining the correct method to call?
(Multiple Choice)
4.9/5
(32)
If the superclass contains only abstract method declarations, the superclass is used for ________.
(Multiple Choice)
4.7/5
(40)
Assigning a subclass reference to a superclass variable is safe ________.
(Multiple Choice)
4.9/5
(38)
It is a UML convention to denote the name of an abstract class in ________.
(Multiple Choice)
4.8/5
(37)
Showing 1 - 20 of 30
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)