
AP Computer Science-Quiz 2(G10)
Authored by fareeda k
Computers
9th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. In Java, which keyword is used to declare an integer variable?
int
double
char
boolean
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. What is the output of the following code snippet?
int num = 10;
num = num + 5;
System.out.println(num);
5
10
15
20
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. Primitive data types in Java include int, double, char, and boolean.
3. Primitive data types in Java include int, double, char, and boolean.
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. Which operator is used to compare if two values are not equal in Java?
4. Which operator is used to compare if two values are not equal in Java?
==
!=
>
<
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. What is the correct syntax for an if statement in Java?
5. What is the correct syntax for an if statement in Java?
`if condition { }`
`if (condition) { }`
`if (condition); { }`
`if {condition} ( )`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. Which of the following is a logical operator in Java?
&&
!=
==
>
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7. An if-else statement can be used to execute one block of code if a condition is true and another block of code if the condition is false.
True
False
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
15 questions
Lua Review Corona SDK with Notepad++
Quiz
•
10th - 12th Grade
15 questions
Arduino
Quiz
•
7th - 9th Grade
10 questions
TIN HỌC 10 - BÀI 21
Quiz
•
10th Grade
10 questions
ภาษาไพทอน
Quiz
•
10th Grade
10 questions
Mid semester kelas XI RPL Konsep pemodelan berorientasi objek
Quiz
•
11th Grade
10 questions
Ôn tập chủ đề 5. Giải quyết vấn đề với sự trợ giúp của máy tính
Quiz
•
12th Grade
15 questions
Pemrograman Web dan Perangkat Bergerak #1
Quiz
•
11th Grade
15 questions
History of Computers
Quiz
•
6th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
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
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Exponent Properties
Quiz
•
9th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade