Summary 5.1-5.4

Summary 5.1-5.4

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

9 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the scope of private methods and private instance variables?

Back

the declaring class

2.

FLASHCARD QUESTION

Front

Classes’ access specifier is generally set to...

Back

public

3.

FLASHCARD QUESTION

Front

Which of the following would be the state of the Object tree? Options: int height, int girth, boolean deciduous, private boolean deciduous

Back

private boolean deciduous

4.

FLASHCARD QUESTION

Front

We can set the initial state of an object through...

Back

constructors

5.

FLASHCARD QUESTION

Front

Objects cannot have objects as attributes. True or False?

Back

False

6.

FLASHCARD QUESTION

Front

When we use a class as an attribute in another class the class we are using as an attribute will be the ______ _____ of the class that is using it as an attibute.

Back

data type

7.

FLASHCARD QUESTION

Front

An object's state is defined by the object's...

Back

instance variables and values

8.

FLASHCARD QUESTION

Front

What is the purpose of accessor and mutator methods?

Back

controls what users can both access and mutate

9.

FLASHCARD QUESTION

Front

The return type of an accessor method...

Back

must match the data type of the instance variable being accessed