CodeHS 4.5 Writing Classes and Instance Methods

CodeHS 4.5 Writing Classes and Instance Methods

9th - 12th Grade

6 Qs

quiz-placeholder

Similar activities

Q1 M 2 - TOPIC 2 / Check your understanding

Q1 M 2 - TOPIC 2 / Check your understanding

10th Grade

10 Qs

ICT - Networks and communication

ICT - Networks and communication

9th Grade

11 Qs

4Q Week3 Review Quiz (Who missed the Quiz ONLY))

4Q Week3 Review Quiz (Who missed the Quiz ONLY))

9th Grade

10 Qs

LET's Check your knowledge on E-Governance & E-Commerce

LET's Check your knowledge on E-Governance & E-Commerce

10th Grade

11 Qs

Pandas - CSV file

Pandas - CSV file

12th Grade

10 Qs

Mid semester kelas XI RPL Konsep pemodelan berorientasi objek

Mid semester kelas XI RPL Konsep pemodelan berorientasi objek

11th Grade

10 Qs

ICT TANJORE

ICT TANJORE

12th Grade

11 Qs

HARDWARE AND SOFTWARE

HARDWARE AND SOFTWARE

2nd - 10th Grade

10 Qs

CodeHS 4.5 Writing Classes and Instance Methods

CodeHS 4.5 Writing Classes and Instance Methods

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Aaron Pavao

Used 13+ times

FREE Resource

AI

Enhance your content in a minute

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

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an instance variable?

a variable that stores the state of an object

a variable that defines the behaviors of an object

a variable that creates an instance of an object

an object

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do we define the behavior of an object?

instance methods

constructors

client class

instance variables

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When the video on CodeHS talks about visibility, what are they talking about?

the first keyword in a method that determines whether client classes can use the method

what Java sees the method as--the type of data that will be returned

whether the method uses data hiding

whether other programmers can see your code

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the return type of a method that doesn't return a value?

void

String

public

private

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Check everything that's true about a method's name.

It has to start with a letter

It has to be unique in the class

It can only have letters, numbers, and the underscore _ character

It needs to have parentheses after it

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a parameter?

inputs to a method

an instance variable

an instance method

Rick Astley

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?