
Quiz on Classes, Objects, and Methods
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Easy
Myca Pacibo
Used 1+ times
FREE Resource
Enhance your content in a minute
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are instance variables?
Variables that can only be accessed by the main class
Variables declared outside any method
Variables that are always public
Variables declared within a method
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of methods in programming?
To declare variables
To hide information
To group statements for a specific task
To store data permanently
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'this' keyword refer to?
The variable being declared
The object receiving a method call
The method being called
The class itself
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Where are local variables declared?
Within a class
Within a method definition
Outside any method
In the main class only
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is information hiding?
Hiding all methods from users
Restricting access to some object components
Making all variables public
Allowing full access to all methods
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are public modifiers?
Modifiers that are only used in constructors
Modifiers that allow unrestricted access
Modifiers that restrict access
Modifiers that are always private
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an accessor method?
A method that deletes data
A method that creates new variables
A method that returns data from a private variable
A method that changes data
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
18 questions
Cyber Security and Social Engineering
Quiz
•
9th - 11th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
15 questions
Quiz 1
Quiz
•
1st - 12th Grade
15 questions
Data Security Worksheet
Quiz
•
10th Grade - University
14 questions
LA5.C5: Branching and Subroutines
Quiz
•
9th Grade - University
15 questions
SENATIC Parcial Guía 3_PseInt
Quiz
•
10th Grade - University
15 questions
Latihan_106
Quiz
•
11th Grade
15 questions
Network Advantages and Disadvantages
Quiz
•
10th Grade - University
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
