Chapter 15 Quiz

Quiz
•
Computers
•
University
•
Medium

Albert Gorup
Used 1+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A constructor can be redefined.
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the following class definition, what is the name of the subclass?
class Rose: public Flower { ... };
Rose
Flower
Rose Flower
None of them.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When there are several classes that have many common data attributes/fields, it is better to write a(n) ________ to hold all the general data.
superclass
subclass
object
method
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To redefine a function, the function must be defined in the derived class using the same signature and return type as in its base class.
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The final keyword can be used to prevent a function to be overridden or to declare a constant.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax for defining a class named Table, which inherits from the class named Furniture?
class Table(Furniture);
class Furniture: public Table { ...};
class Table(Furniture) { ...};
class Table: public Furniture { ...};
Similar Resources on Wayground
10 questions
Week 9 C# (for Java programmers)

Quiz
•
University
7 questions
Class diagram-P2

Quiz
•
University
10 questions
Python Generators

Quiz
•
10th Grade - University
10 questions
Java Inheritance

Quiz
•
11th Grade - University
6 questions
Inheritance in JAVA

Quiz
•
University
9 questions
Object Oriented Programming

Quiz
•
University
10 questions
Objection-Oriented Concepts

Quiz
•
University
10 questions
JAVA FOR ANDROID-JAVA

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade