Search Header Logo

Understanding Conditional Statements and Boolean Logic

Authored by Jonathan Nicholson

Mathematics

11th Grade

14 Questions

CCSS covered

Understanding Conditional Statements and Boolean Logic
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does an if statement do in a program?

Repeats a block of code multiple times

Stops the program

Executes a block of code if a certain condition is true

Declares a variable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to write an if statement in Python to check if `a` is equal to 10?

if a == 10:

if a = 10:

if a equals 10:

if a!=10

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the else statement do in a program?

Executes a block of code if the if statement's condition is false

Stops the execution of the program

Executes a block of code multiple times

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a boolean expression?

5 + 3

"Hello World"

5 > 3

x = 5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the AND operator do in a boolean expression?

Returns True if at least one of the conditions is true

Returns True if both conditions are false

Returns True if both conditions are true

Returns False if both conditions are true

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the OR operator do in a boolean expression?

Returns True if both conditions are true

Returns True if at least one of the conditions is true

Returns True only if all conditions are false

Returns False if at least one condition is true

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the NOT operator do in a boolean expression?

Reverses the condition, making True False and vice versa

Makes both conditions required to be True

Combines two conditions into one

None of the above

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?