Quiz
CPSI 2413 - Unit 2
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (15)
1
Subclasses are more specific than the superclass they extend.- ATrue
- BFalse
2
In a UML diagram, an inheritance relationship is indicated with an arrow that points from the original class to the descendant class.- ATrue
- BFalse
3
When you use the method name with a child object, the parent’s version of the method is used.- ATrue
- BFalse
4Composition can be modeled as a "IS A" relationship.
- ATrue
- BFalse
5
Inheritance can be modeled as a "IS A" relationship.- ATrue
- BFalse
6Polymorphism relies on inheritance to operate.
- ATrue
- BFalse
7
When you create a superclass and one or more subclasses, each object of each subclass is a subclass object.- ATrue
- BFalse
8
Java does not allow a class to inherit directly from two or more parents.- ATrue
- BFalse
9
A nonstatic method cannot override a static member of a parent class.- ATrue
- BFalse
10
____ polymorphism is the ability of one method to work appropriately for subclasses of the same parent class.- ASubtype
- BName
- CSupertype
- DOverride
11____ is a mechanism that enables one class to acquire all the behaviors and attributes of another class.
- AInheritance
- BPolymorphism
- CEncapsulation
- DOverride
12If a programming language does not support ____, the language is not considered object-oriented.
- Asyntax
- Bapplets
- Cloops
- Dpolymorphism
13It is common to create an interface when you want a class to implement behavior from more than one parent.
- ATrue
- BFalse
14
Abstract classes and interfaces are similar in that you cannot instantiate concrete objects from either one.- ATrue
- BFalse
15
When you create a class that uses an interface, you include the keyword extends.- ATrue
- BFalse
Information
- Description
- CPSI 2413 Quiz on CPSI 2413 - Unit 2, created by Adam Peterson on 26/01/2018.
- Author
- Adam Peterson
- Language
- English
- Views
- 35
- Tags
- Rating
- No ratings yet Rate this quiz