APCSA Unit 5 refresher
Quiz
•
Computers
•
9th Grade
•
Medium
Thomas Wright
Used 2+ times
FREE Resource
Enhance your content in a minute
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.
Create a free account and access millions of resources
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
computer and technology quiz
Quiz
•
7th - 12th Grade
20 questions
File Management 3
Quiz
•
8th - 9th Grade
21 questions
Data protection
Quiz
•
9th - 11th Grade
20 questions
MS EXCEL
Quiz
•
8th - 10th Grade
20 questions
Programming
Quiz
•
9th - 11th Grade
27 questions
Adobe Illustrator Quiz Review
Quiz
•
9th - 12th Grade
19 questions
Spreadsheet
Quiz
•
5th - 9th Grade
20 questions
Mobile Apps PayKu
Quiz
•
1st Grade - Professio...
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
