Java Quiz 4: Booleans and Conditional Statements

Quiz
•
Computers
•
6th - 12th Grade
•
Medium
Jerry Xiao
Used 90+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Booleans can have values of yes and no.
True
False
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
When using the && operator the statement will evaluate to true when:
One and ONLY one statement is true
Both statements are true
No statements are true
None of these
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
When using the || operator the statement will evaluate to true when:
One and ONLY one statement is true
One or both statements are true
Both statements are true
All of these
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
In Java an if statement is a conditional statement, meaning it sometimes does not run.
True
False
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
An else statement can run after its preceding if statement runs.
True
False
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Switch statements allow for multiple branches of execution.
True
False
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
! is as a NOT modifier.
True
False
Similar Resources on Wayground
10 questions
Flowchart

Quiz
•
6th Grade
11 questions
CodeHS 2.13 Short-Circuit Evaluation

Quiz
•
9th - 12th Grade
10 questions
Grade 9 - User Defined Methods

Quiz
•
9th Grade
11 questions
PYTHON "If" Statement

Quiz
•
6th Grade
10 questions
G11 FT Quiz 1 - Python Conditions

Quiz
•
11th Grade
8 questions
ctech008-03072025

Quiz
•
8th Grade
10 questions
2.2 programming fundamentals

Quiz
•
9th - 12th Grade
10 questions
Boolean logic

Quiz
•
9th 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
8 questions
Time Management

Quiz
•
6th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th 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