CodeHS 4.5 Writing Classes and Instance Methods
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Aaron Pavao
Used 13+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
𝐂𝐡𝐚𝐩𝐭𝐞𝐫 𝟐—The Blueprints for Modern Computers
Quiz
•
10th Grade
10 questions
Java: repetition control structure for & while
Quiz
•
10th - 12th Grade
10 questions
Lesson 1 Introduction to Database System
Quiz
•
10th Grade
10 questions
Review
Quiz
•
9th - 12th Grade
10 questions
Java Fundamentals
Quiz
•
12th Grade
10 questions
Scratch
Quiz
•
KG - Professional Dev...
10 questions
Network Security
Quiz
•
9th - 11th Grade
10 questions
What is a program slides(6:16)
Quiz
•
8th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
