
AP CSA Unit 2 Quiz
Quiz
•
Computers
•
12th Grade
•
Hard
Michelle Reckling
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a method in Java?
A method in Java is a block of code that performs a specific task.
A method in Java is a keyword used to declare a class.
A method in Java is a loop that repeats a block of code.
A method in Java is a variable that stores data.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a class in Java?
A class in Java is a blueprint or template for creating objects.
A class in Java is a keyword used to declare a variable.
A class in Java is a built-in function that performs a specific task.
A class in Java is a data type used to store multiple values of the same type.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are primitive types in Java?
integer, String, object, null, undefined
boolean, int, double
boolean, byte, object, String
true, false, null, undefined, number, string
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a constructor in Java?
A constructor in Java is a keyword used to create objects.
A constructor in Java is a method used to modify the state of an object.
A constructor in Java is a special method used to initialize objects.
A constructor in Java is a method used to define the behavior of an object.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an object in Java?
An object in Java is an instance of a class.
An object in Java is a variable.
An object in Java is a method.
An object in Java is a data type.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a method in Java?
The purpose of a method in Java is to slow down the execution of the program.
The purpose of a method in Java is to perform a specific task and provide code reusability, modularity, and abstraction.
The purpose of a method in Java is to make the code harder to read and understand.
The purpose of a method in Java is to increase the complexity of the code.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a class in Java?
You define a class in Java using the 'create' keyword followed by the class name.
You define a class in Java using the 'class' keyword followed by the class name.
You define a class in Java using the 'new' keyword followed by the class name.
You define a class in Java using the 'define' keyword followed by the class name.
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
10 questions
Java: repetition control structure for & while
Quiz
•
10th - 12th Grade
10 questions
Review
Quiz
•
9th - 12th Grade
10 questions
Java Fundamentals
Quiz
•
12th Grade
10 questions
JavaScript 2
Quiz
•
12th Grade
13 questions
வகுப்பு 12 - அடோப் இன்டிசைன் CC 2019
Quiz
•
12th Grade
10 questions
Alapismeretek
Quiz
•
7th - 12th Grade
10 questions
Scratch
Quiz
•
KG - Professional Dev...
10 questions
What is a program slides(6:16)
Quiz
•
8th - 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
