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
11 questions
Advanced Spreadsheet Functions Review

Quiz
•
8th Grade
10 questions
L2 Selection in Programming

Quiz
•
8th Grade
10 questions
Email Etiquette

Quiz
•
8th - 9th Grade
9 questions
Swift Playgrounds

Quiz
•
9th Grade
10 questions
Programming - Operations on Numeric & Boolean Data

Quiz
•
2nd - 12th Grade
12 questions
Loops (Python)

Quiz
•
8th Grade
10 questions
Year 6 Operators

Quiz
•
6th Grade
9 questions
U3: [Assess] L14-L17 Code.org

Quiz
•
9th - 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
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

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

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

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