
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.
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
30 questions
Quiz Herramientas TIC
Quiz
•
12th Grade
22 questions
Analysis and design of algorithms
Quiz
•
12th Grade
21 questions
Lecture Exercise Topic 1.3
Quiz
•
12th Grade
22 questions
C# start
Quiz
•
11th - 12th Grade
21 questions
Inteligencia Artificial
Quiz
•
10th Grade - University
21 questions
IP Address
Quiz
•
10th - 12th Grade
23 questions
Quiz de Modelagem de Dados
Quiz
•
12th Grade
21 questions
Experience AI Lessons - Summative Assessment
Quiz
•
8th Grade - University
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
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
