
Conditionals Test Review
Flashcard
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

12 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which keyword is used to execute code only if a condition is true? Options: if, else, while, for
Back
if
2.
FLASHCARD QUESTION
Front
Which statement will be executed if the condition in an if statement is false? Options: The if block, The else block (if provided), The program will stop, The code will execute regardless of the condition
Back
The else block (if provided)
3.
FLASHCARD QUESTION
Front
How do you write a condition to check if a variable x is equal to 5? Options: x == 5, x = 5, x === 5, x != 5
Back
x == 5
4.
FLASHCARD QUESTION
Front
How do you write a condition to check if a variable x is not equal to 5?
Back
x != 5
5.
FLASHCARD QUESTION
Front
What is the AND operator in Java?
Back
&&
6.
FLASHCARD QUESTION
Front
What is the OR operator in Java?
Back
||
7.
FLASHCARD QUESTION
Front
What will be the output of the following code?
int a = 1;
if (a > 3) {
println("Greater than 3");
} else {
println("Not greater than 3");
}
Back
Not greater than 3
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
10 questions
Output Devices
Flashcard
•
10th Grade
15 questions
Plant Structure and Function Review
Flashcard
•
9th - 12th Grade
14 questions
2025 S3/4 CCKS Nutrients
Flashcard
•
8th Grade - University
8 questions
Understanding Heat Radiation
Flashcard
•
KG
9 questions
Parts of a Computer
Flashcard
•
9th - 12th Grade
13 questions
[AP CSP] Binary Conversion
Flashcard
•
9th - 12th Grade
10 questions
Purpose Clauses
Flashcard
•
10th - 11th Grade
8 questions
Lesson 3 - Internet Concepts
Flashcard
•
KG
Popular Resources on Wayground
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
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade