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
10 questions
Quiz Javascript Basic Pertemuan 3

Quiz
•
9th - 12th Grade
15 questions
Java Script Quiz

Quiz
•
9th - 12th Grade
10 questions
Java-Quiz1

Quiz
•
10th Grade
10 questions
Input and Output Python

Quiz
•
10th Grade
15 questions
UTS SMT Genap PBO 11 RPL

Quiz
•
11th Grade
10 questions
C++ Programming Quiz

Quiz
•
12th Grade
10 questions
Class 9 Conditional Statement

Quiz
•
9th Grade
11 questions
while and do while Loop

Quiz
•
10th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade