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
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
Similar Resources on Wayground
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
10 questions
Pemrograman berorientasi objek

Quiz
•
11th Grade
10 questions
Adobe Animate Quiz 2

Quiz
•
11th Grade
11 questions
Understanding Object-Oriented Programming Concepts (video)

Quiz
•
12th Grade
10 questions
Java

Quiz
•
11th Grade
10 questions
Q4M3 ASSESSMENT

Quiz
•
10th Grade
9 questions
Java Class and Object Quiz

Quiz
•
11th Grade
10 questions
Python Boolean and If

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade