# Booleans Practice Quiz¶

• CS20-FP2 Investigate how control structures affect program flow.

To confirm that you understand the major concepts you’ve seen in Python, try to answer the following questions without opening Python.

## Question 1¶

boolean-quiz1: What would the following print?:

a = 6
b = 10
print(a == 6)

• True
• Great!
• False
• Try again!

## Question 2¶

boolean-quiz2: What would the following print?:

a = 6
b = 10
print( not (b == 6) )

• True
• Great!
• False
• Try again!

## Question 3¶

boolean-quiz3: What would the following print?:

a = 6
b = 10
print( a == 10 or b == 10 )

• True
• Great!
• False
• Try again!

## Question 4¶

boolean-quiz4: What would the following print?:

a = 6
b = 10
print( a == 6 and 10 )

• True
• Great!
• False
• Try again!

## Question 5¶

boolean-quiz5: What would the following print?:

a = 6
b = 10
print( not a == 10 and b == 10 )

• True
• Great!
• False
• Try again!

## Question 6¶

boolean-quiz6: What would the following print?:

a = 6
b = 10
print( a == 10 or not b == 10 )

• True
• Try again!
• False
• Great!

## Question 7¶

boolean-quiz7: What would the following print?:

a = 6
b = 10
print( a == 6 and (not a == 10) )

• True
• Great!
• False
• Try again!

## Question 8¶

boolean-quiz8: What would the following print?:

a = 6
b = 10
print( not ( not a == 10 or not b == 10) )

• True
• Try again!
• False
• Great!
Next Section - Loops Practice Quiz