
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
Word basics
Quiz
•
8th - 12th Grade
12 questions
HTML
Quiz
•
9th - 12th Grade
10 questions
Baze de date-Design
Quiz
•
12th Grade
9 questions
Los periféricos del computador
Quiz
•
1st Grade - Professio...
10 questions
Ce știm despre Internet?
Quiz
•
4th Grade - University
14 questions
Computing figures
Quiz
•
4th - 12th Grade
13 questions
Podsumowanie: binarny, komputer, sieć
Quiz
•
7th Grade - University
10 questions
Working around Adobe Photoshop
Quiz
•
12th Grade
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
