
APCSA Unit 5 refresher
Authored by Thomas Wright
Computers
9th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The return type of an accessor method
is void
must be a user defined class
must be a primitive
must match the type of the instance variable being accessed
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The purpose of an accessor method is
to modify an instance variable
to return the value of an instance variable
to return the values of all of the instance variables
to allow the user to have direct access to an instance variable
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true?
Both primitives and objects are returned by value.
Both primitives and objects are returned by reference.
Primitives are returned by value. Objects are returned by reference.
Objects are returned by value. Primitives are returned by reference.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Accessors and mutators are used to
Allow private data to be accessed outside of the class and be safely modified.
Allow users to access and modify any of the class’s data in any way they wish.
Prevent users from manipulating private data.
Allow public data to be accessed and safely modified.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The return type of a mutator method
is usually void
must match the type of of the instance variable being mutated
must be a primitive
must be a user defined class
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a benefit of using a mutator method?
Only methods outside of the class can change an instance variable’s value
Mutator methods can verify the new value is a valid value for the instance variable
The user can change all of the instance variables using the same mutator method
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Classes’ access specifier is generally set to
private to prevent any user from accessing and modifying any instance variables.
private so that only certain users can create objects of the class.
public so that all data and methods are accessible by any user.
public so that any user can create and use objects of the class.
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
20 questions
History of Package Design
Quiz
•
9th - 12th Grade
20 questions
NP IT Quiz ปริศนาไอที #4
Quiz
•
9th - 12th Grade
20 questions
Input devices and Word processing Software
Quiz
•
7th - 9th Grade
18 questions
1.4 Types of Computer
Quiz
•
8th - 10th Grade
20 questions
Problem Solving Quiz
Quiz
•
6th Grade - University
20 questions
Name The Disney Animation Films
Quiz
•
KG - University
19 questions
R088 - LO1
Quiz
•
9th Grade
20 questions
uCertify Lesson 2 Quiz Advanced HTML
Quiz
•
8th - 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
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Exponent Properties
Quiz
•
9th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade