Chapter 4 Writing Classes Lecture

Chapter 4 Writing Classes Lecture

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Diagrama electrónico

Diagrama electrónico

9th Grade

15 Qs

Engaging Secondary Science

Engaging Secondary Science

6th - 12th Grade

14 Qs

enzim

enzim

12th Grade

17 Qs

LA MEDICINA

LA MEDICINA

11th Grade

10 Qs

El texto

El texto

9th - 11th Grade

10 Qs

Climas de la Península Ibérica

Climas de la Península Ibérica

9th Grade

15 Qs

Operaciones con Fracciones

Operaciones con Fracciones

7th - 12th Grade

20 Qs

MILC Rules 1

MILC Rules 1

1st - 10th Grade

20 Qs

Chapter 4 Writing Classes Lecture

Chapter 4 Writing Classes Lecture

Assessment

Quiz

9th - 12th Grade

Easy

Created by

Vincent Carchietta

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An object has:

state & actions

actions & behaviors

start & finish

state & behaviors

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

A class is

a blueprint of an object.

a copy of an object.

an action.

the model or pattern from which objects are

created.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following are methods from the Coin class?

a Coin constructor which is used to initialize the object

a flip method which is used to flip the coin

a isHeads method which is used to determine if the current face is heads

all of these options are methods, even the constructor which is a block of code similar to a method that's called when an instance of an object is created

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The ______________ of data is the area in a program in which

that data can be used (referenced)

value

scope

instance

void

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A class declares the type of the data, ________

reserve memory space for it

only when you specify, it will

therefore it will sometimes

therefore it will always

but it does not

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Can you access as private variable outside of it's class?

Yes

No

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Members of a class that are declared with _______

visibility can be accessed from anywhere

public

private

protected

open

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?