Java Quiz 4: Booleans and Conditional Statements

Java Quiz 4: Booleans and Conditional Statements

6th - 12th Grade

7 Qs

quiz-placeholder

Similar activities

Python Operators

Python Operators

11th Grade

10 Qs

Python If Statements - and or not

Python If Statements - and or not

11th Grade

10 Qs

Programming Basics

Programming Basics

9th - 10th Grade

10 Qs

Python Boolean and If

Python Boolean and If

9th - 12th Grade

10 Qs

Python IF Statements

Python IF Statements

9th - 12th Grade

10 Qs

Inputs and Booleans

Inputs and Booleans

3rd - 10th Grade

10 Qs

Chapter 5 Coding Fundamentals

Chapter 5 Coding Fundamentals

6th Grade

12 Qs

1.1.3 CSE Conditionals and Event-driven Programming

1.1.3 CSE Conditionals and Event-driven Programming

9th - 12th Grade

8 Qs

Java Quiz 4: Booleans and Conditional Statements

Java Quiz 4: Booleans and Conditional Statements

Assessment

Quiz

Computers

6th - 12th Grade

Medium

Created by

Jerry Xiao

Used 88+ 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