
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.
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the role of a constructor in Java?
The role of a constructor in Java is to define the methods and variables of a class.
The role of a constructor in Java is to initialize objects and set their initial state.
The role of a constructor in Java is to perform mathematical calculations.
The role of a constructor in Java is to handle exceptions and errors.
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create an object in Java?
Use the 'new' keyword followed by the class name and parentheses.
Use the 'initialize' keyword followed by the class name and parentheses.
Use the 'make' keyword followed by the class name and parentheses.
Use the 'create' keyword followed by the class name and parentheses.
Similar Resources on Wayground
13 questions
Diagnostico bases Informática
Quiz
•
1st - 12th Grade
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
10 questions
Cultura Digital 1º Trimestre (6º)
Quiz
•
5th - 12th Grade
14 questions
Topologías de red!
Quiz
•
12th Grade
10 questions
Cos’è la ROM?
Quiz
•
6th - 12th Grade
10 questions
EMPTECH L4 Q3
Quiz
•
12th Grade
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
10 questions
Microcontroller
Quiz
•
11th 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
