JAVA: Interfaces & Inheritance

JAVA: Interfaces & Inheritance

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Shawn Kenner

Used 68+ times

FREE Resource

Student preview

quiz-placeholder

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When related classes have the same ____, they can be used interchangeably in a program.

value
definition
interface
hierarchy

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If more than one class implements an interface, its methods are ____.

aggregated
public
dependent
polymorphic

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When the element type of an array is a(n) ____ or interface, objects of those types or any subtype can be directly inserted into the array.

primitive
concrete
abstract
reference

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Methods in a subclass can be related to methods in a superclass in all of the following ways EXCEPT ____.

implementation of a concrete method.
extension
overriding
finality

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The relationship that allows an object of one class to send a message to an object of another class is called ____.

inheritance
superclass
dependency
aggregation

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The ____ process uses the clone message to obtain copies.

duplication
deep copying
aliasing
overriding

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A(n) ____________________ method cannot be overridden by a subclass.

final
private
public
static

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?