What is an instance variable?
CodeHS 4.5 Writing Classes and Instance Methods

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Aaron Pavao
Used 12+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
11 questions
Understanding Object-Oriented Programming Concepts (video)

Quiz
•
12th Grade
10 questions
Programming Paradigms

Quiz
•
12th Grade
10 questions
C# Basics

Quiz
•
12th Grade - Professi...
10 questions
Code.org Unit 5 Vocab Quiz 1

Quiz
•
9th - 12th Grade
10 questions
Grade 9 - User Defined Methods

Quiz
•
9th Grade
11 questions
Chapter Dictionaire

Quiz
•
9th Grade
6 questions
AP CSA 5.4 / 5.5 (Getters / Setters)

Quiz
•
10th - 12th Grade
10 questions
CHAPTER 3. INTRODUCTION TO DBMS -1

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade