AP Computer Science-Quiz 2(G10)

Quiz
•
Computers
•
9th - 12th Grade
•
Easy
fareeda k
Used 2+ times
FREE Resource
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.
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?
==
!=
>
<
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
{CC} questions

Quiz
•
9th - 12th Grade
10 questions
Conhecimentos prévios em Java

Quiz
•
10th - 12th Grade
15 questions
Java Test 1

Quiz
•
10th Grade
12 questions
Repaso de Java

Quiz
•
10th Grade
15 questions
Java Level 1 - C

Quiz
•
12th Grade
10 questions
Operators in Java

Quiz
•
9th Grade
8 questions
JavaScript y CSS

Quiz
•
11th Grade
15 questions
JAVA: Level-1

Quiz
•
5th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade