Exam 10: Introduction to Inheritance
Exam 1: Creating Your First Java Classes76 Questions
Exam 2: Using Data81 Questions
Exam 3: Using Methods, Classes and Objects79 Questions
Exam 4: More Object Concepts84 Questions
Exam 5: Making Decisions80 Questions
Exam 6: Looping77 Questions
Exam 7: Characters, Strings and the Stringbuilder82 Questions
Exam 8: Arrays77 Questions
Exam 9: Advanced Array Concepts80 Questions
Exam 10: Introduction to Inheritance78 Questions
Exam 11: Advanced Inheritance Concepts78 Questions
Exam 12: Exception Handling79 Questions
Exam 13: File Input and Output78 Questions
Exam 14: Introduction to Swing Components79 Questions
Exam 15: Using Javafx and Scene Builder65 Questions
Select questions type
Match each term with the correct statement below.
Premises:
Inherits from a base class
Responses:
class diagram
superclass
derived class
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(39)
Match each term with the correct statement below.
Premises:
Makes a program run faster
Responses:
containment
inheritance
instanceof
Correct Answer:
Premises:
Responses:
(Matching)
4.9/5
(45)
Which of the following statements will create a class named Red that is based on the class Color ?
(Multiple Choice)
4.9/5
(40)
A class diagram consists of a rectangle divided into three sections.
(True/False)
4.9/5
(32)
Match each term with the correct statement below.
Premises:
Casting to a supertype
Responses:
containment
super()
upcast
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(33)
When you create parent and child classes of your own, the child classes use ____ constructors.
(Multiple Choice)
4.8/5
(29)
Match each term with the correct statement below.
Premises:
Methods that work appropriately for subclasses of the same parent class
Responses:
subtype polymorphism
class diagram
super()
Correct Answer:
Premises:
Responses:
(Matching)
4.9/5
(34)
Match each term with the correct statement below.
Premises:
A mechanism that enables one class to assume both the behavior and the attributes of another class
Responses:
upcast
derived class
UML
Correct Answer:
Premises:
Responses:
(Matching)
4.9/5
(32)
You can use the keyword ____ within a method in a derived class to access an overridden method in a base class.
(Multiple Choice)
4.7/5
(34)
Match each term with the correct statement below.
Premises:
An instance method call
Responses:
UML
inheritance
virtual method call
Correct Answer:
Premises:
Responses:
(Matching)
4.9/5
(41)
Match each term with the correct statement below.
Premises:
Must be the first statement in the subclass constructor
Responses:
subtype polymorphism
information hiding
UML
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(42)
Match each term with the correct statement below.
Premises:
Classes that directly use fields from parent classes
Responses:
UML
instanceof
inheritance
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(35)
Arrows used in a ____ to show inheritance relationships extend from the descendant class and point to the original class.
(Multiple Choice)
4.9/5
(38)
By convention, a class diagram contains the ____ following each attribute or method.
(Multiple Choice)
4.9/5
(28)
An advantage to making a method ____ is that the compiler knows there will be only one version of the method.
(Multiple Choice)
4.9/5
(34)
When you use the method name with a child object, the parent's version of the method is used.
(True/False)
5.0/5
(29)
Showing 21 - 40 of 78
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)