No student devices needed. Know more
15 questions
Boolean expression: an expression that evaluates to either true or false.
(3 > 2) is
True
False
Boolean expression: an expression that evaluates to either true or false.
(3 < 2) is
True
False
Boolean expression: an expression that evaluates to either true or false.
(3 == 2) is
True
False
Boolean expression: an expression that evaluates to either true or false.
(3 != 2) is
True
False
Boolean expression: an expression that evaluates to either true or false.
(3 >= 2) is
True
False
Boolean expression: an expression that evaluates to either true or false.
(3 <= 2) is
True
False
Boolean values are true or false. Which parameter is a boolean?
Rect(left, top, width, height, fill='black', opacity=100, visible=True)
left
fill
opacity
visible
Comparison operators: operators that compare values.
Boolean expessions contain comparison operators and return True or False.
If statements use boolean expression.
Which symbols are comparison operators?
<= (Less than or equal to)
>= (Greater than or equal to)
== (Equality / Testing 2 values are equal)
!= (Inequality / Testing 2 values are not equal)
= (In Python means setting a value)
A Boolean expression .....
Loops the programs to continue infinitely
Sets everything in it equal to eachother
Checks if something is True or False
Fixes any errors in the line of code
How many values does a Boolean variable have?
1
2
4
infinite
Why would you use a boolean expression?
To create a loop in the program
To locate a bug in the program
To execute the next line in the program
To activate a response with True or False
Which boolean expression can be used to check if someone is 18 years old or older?
age > 18
age < 18
age >= 18
age <= 18
Where can boolean expressions be found?
variables
If statements
By itself
assignment statement
Which numbers for x would cause the boolean expression x <= 14 to be True?
3, 17, 20
1, 11, 14
14, 18, 20
13, 14, 15
Fill in the blank so that people that are 18 years old and older are allowed to vote.
<
>
<=
>=
Explore all questions with a free account