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
15 questions
JavaScript Basics

Quiz
•
12th Grade - University
15 questions
Java Fundamentals

Quiz
•
12th Grade
11 questions
Java Boolean Statements

Quiz
•
11th Grade
9 questions
Instructiuni Repetitive C++

Quiz
•
10th Grade
11 questions
Project STEM AP CS A Unit 1 Quiz Review

Quiz
•
9th - 12th Grade
15 questions
Java Arrays Prt 1Quiz

Quiz
•
9th - 12th Grade
10 questions
T_(b)(C)_4.1 Introduction to Java Program

Quiz
•
12th Grade
15 questions
Java Level 1 - B

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade