
APCSA Unit 2 Quiz
Quiz
•
Computers
•
12th Grade
•
Hard
Katherine Valenti
FREE Resource
Enhance your content in a minute
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Java, what is a class defined as?
A) A collection of objects
B) A type of data structure
C) A programmer-defined blueprint from which objects are created
D) A function that performs operations
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an object in Java?
A) A reference to a class
B) A method within a class
C) An instance of a class
D) A variable type
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an instance variable?
A) A type of method that performs an action in a class.
B) A variable defined in a class that represents an attribute of an object.
C) A piece of data passed into a method when it is called.
D) A variable that is shared among all instances of a class.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'int' in the declaration 'private int xLocation;' represent?
A) A sequence of characters, like "purple"
B) Decimal numbers, like 2.5 or 92.81
C) Whole numbers, like 7 or 6784
D) True or false values
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the visibility of the instance variable 'xLocation' as declared in 'private int xLocation;'?
A) Public
B) Protected
C) Default
D) Private
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens to instance variables when an object is instantiated?
A) They are shared with other instances of the same class.
B) They are deleted and must be redefined.
C) Each object gets its own copy of the instance variables.
D) They become static and unchangeable.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is inheritance in object-oriented programming?
A) A method by which one class receives properties from another class.
B) A principle where a subclass inherits the attributes and behaviors of a superclass.
C) The process by which a function calls itself.
D) A technique for encapsulating data within a 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
22 questions
Dispositivos de entrada / saída / entrada e saída
Quiz
•
6th - 12th Grade
22 questions
Programming Review
Quiz
•
9th - 12th Grade
21 questions
CSP Vocab Practice 2
Quiz
•
10th - 12th Grade
25 questions
Java Review
Quiz
•
9th Grade - University
21 questions
Preguntas sobre Placas Base
Quiz
•
12th Grade
23 questions
Introduction to Multimedia and Photography
Quiz
•
12th Grade
21 questions
Sugestão de Movimento e Estrutura Clara
Quiz
•
12th Grade
22 questions
Intelligenza Artificiale Quiz
Quiz
•
12th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
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
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
10 questions
Dr. King's Speech and Its Impact
Interactive video
•
7th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
7 questions
Anti-Bullying ARS 15-341
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
15 questions
TSI Math Practice Questions
Quiz
•
8th - 12th Grade
24 questions
Identify Properties of Polygons and Quadrilaterals
Quiz
•
9th - 12th Grade
