AP CSA Unit 9 - Inheritance

AP CSA Unit 9 - Inheritance

9th - 12th Grade

22 Qs

quiz-placeholder

Similar activities

WIR - Visual identity (13/10/22)

WIR - Visual identity (13/10/22)

10th Grade

18 Qs

9-Класс ТЕСТ 30-34

9-Класс ТЕСТ 30-34

9th Grade

20 Qs

Remedial PH 1 AIJ XII

Remedial PH 1 AIJ XII

12th Grade

20 Qs

Ethics and Morals

Ethics and Morals

12th Grade

20 Qs

Re-order me

Re-order me

11th Grade

18 Qs

Design your website

Design your website

7th - 12th Grade

20 Qs

Artificial Intelligence and SketchUp

Artificial Intelligence and SketchUp

8th - 10th Grade

20 Qs

flowol week 3

flowol week 3

9th - 12th Grade

17 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?