
APCSA Unit 2 Quiz
Authored by Katherine Valenti
Computers
12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
21 questions
Repaso de Contenidos
Quiz
•
2nd - 12th Grade
21 questions
Aula Anterior - Quiz
Quiz
•
12th Grade
22 questions
Documental: Historia secreta de los piratas informáticos
Quiz
•
10th - 12th Grade
22 questions
1.1.3 Input, output and storage
Quiz
•
11th Grade - University
21 questions
Partes de la PC
Quiz
•
6th Grade - University
24 questions
Ôn tập cuối kì Mùa Xuân Tin học 11. Chủ đề F. CSDL
Quiz
•
11th Grade - University
21 questions
Computer Applications Quiz 3
Quiz
•
12th Grade
21 questions
Repaso U.D.1
Quiz
•
11th 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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
•
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
•
9th - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade