wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CodeHS 4.10 Key Terms for Classes

Total questions: 11

Worksheet time: 6mins

Name
Class
Date
1.

What contains both state and behavior?

a)

class

b)

object

c)

variable

d)

forklift

2.

What is a vehicle with a pronged device in front for lifting and carrying heavy loads?

a)

class

b)

object

c)

variable

d)

forklift

3.

A template for creating an object

a)

object

b)

class

c)

instance

d)

forklift

4.

A specific version of a class.

a)

instance

b)

class

c)

forklift

d)

variable

5.

What is a method called on an instance of a class?

a)

instance method

b)

object method

c)

behavior method

d)

private method

6.

What defines the state of an object?

a)

instance variable

b)

instance method

c)

instance constructor

d)

instance forklift

7.

What methods and variables are shared by all instances of a class?

a)

static

b)

public

c)

void

d)

main

8.

What is a package in Java?

a)

A group of related classes

b)

A group of related objects

c)

An American football formation

d)

Something that porch pirates steal

9.

What keyword lets us use packages in our code?

a)

import

b)

include

c)

#include

d)

/**

10.

An access modifier is a keyword used to determine who has access to a class, variable, or method. What term does CodeHS use for this keyword?

a)

visibility modifier

b)

access modifier (nice try, Pavao)

c)

public modifier

d)

protection modifier

11.

What the heck is this?

a)

a reference to the current object

b)

a bad Quizizz question

c)

another sad attempt to bring humor into the otherwise dull and empty ennui of existence

d)

this this isn't the this you use in this, just the this that this is used for this for