AP CSA Unit 9 - Inheritance

AP CSA Unit 9 - Inheritance

9th - 12th Grade

22 Qs

quiz-placeholder

Similar activities

Belajar Asyik dengan Google Workspace

Belajar Asyik dengan Google Workspace

11th Grade

20 Qs

Revisão Photoshop

Revisão Photoshop

10th Grade

21 Qs

Google

Google

7th - 12th Grade

20 Qs

Data Structures: 1D,2D & List

Data Structures: 1D,2D & List

11th Grade

17 Qs

Logika & Pemrograman (ID)

Logika & Pemrograman (ID)

10th Grade - Professional Development

20 Qs

Q1 M3 PRE-TEST

Q1 M3 PRE-TEST

10th Grade

20 Qs

Computer Science - X

Computer Science - X

8th - 10th Grade

20 Qs

Administrasi Infrastruktur Jaringan 1

Administrasi Infrastruktur Jaringan 1

11th Grade

20 Qs

AP CSA Unit 9 - Inheritance

AP CSA Unit 9 - Inheritance

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Danielle Mills

Used 17+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

Consider the code provided.

airLevel = 0; needs to use the this keyword. Like so, this.airLevel = 0;

Java interfaces must not include any implementation logic.

All of the method declarations should be private.

All of the methods must include their implementation logic.

Interface methods can not return void.

2.

MULTIPLE CHOICE QUESTION

1 min • 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

What happens if a variable or method is made private?

It can be accessed by any class inherited from the current class
It can be accessed from another object unrelated to the current one.
It cannot be accessed by an unrelated object from the outside.
It cannot be accessed by anything

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 What does Encapsulation mean?

Classes share stuff with subclasses
Grouping fields and member functions together
Making an object from a class

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is this?

Variable
Constructor
Field

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What are these?

Getter and setter methods
Constructors
Fields

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An object is an _________ of a class.

iteration
inheritance
instance

Create a free account and access millions of resources

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?