
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
15 questions
Chapter 3: Storage devices and media (Part 2):
Quiz
•
10th - 11th Grade
11 questions
Computer Programming: Graphics
Quiz
•
8th - 11th Grade
11 questions
Cascading Style Sheets
Quiz
•
8th - 12th Grade
15 questions
REVISION-Primary & Secondary Storage
Quiz
•
10th - 11th Grade
10 questions
MS PowerPoint
Quiz
•
11th Grade
10 questions
Lesson 1-Media and Information Literacy
Quiz
•
11th Grade
15 questions
Bài 1: CSDL
Quiz
•
11th Grade
15 questions
Quiz No. 1 on Open Source Software
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
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
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
10 questions
Evaluating Piecewise Functions Practice
Quiz
•
11th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade
