
Java Conditions and If Statements
Authored by Myra Ungriano
Computers
10th Grade
Used 17+ 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
Which is not included in Java Conditional statements?
if
else
else if
switch
none
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which conditional statement is used to specify a block of code to be executed if a specified condition is false?
if
else
else if
switch
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax to check if a variable 'x' is greater than 10 in Java?
if x > 10
if x >= 10
if x < 10
if x <= 10
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a comparison operator in Java?
==
<=
&&
!=
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When should you use the else if statement in Java?
To specify a block of code to be executed if a specified condition is true.
To specify many alternative blocks of code to be executed.
To specify a new condition to test, if the first condition is false.
To specify a block of code to be executed if the same condition is false.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for a switch statement in Java?
switch { }
switch (expression) { }
switch expression { }
switch (expression) { case: }
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which conditional statement would you use to specify many alternative blocks of code to be executed?
if
else
else if
switch
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
10 questions
STM BTEC DIT 3- 5. Maintenance, set-up, performance p152
Quiz
•
9th - 11th Grade
10 questions
TIN HỌC 10 - BÀI 21
Quiz
•
10th Grade
15 questions
Programming and Debugging
Quiz
•
10th Grade
10 questions
J808 LO1.1 Advantages of following a project life cycle
Quiz
•
10th Grade
10 questions
Javascript & Client side scripting
Quiz
•
10th - 12th Grade
15 questions
History of Computers
Quiz
•
6th - 12th Grade
9 questions
Chromebook S3 Quiz
Quiz
•
6th - 10th Grade
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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