Python Programming Ch. 3
In Python, the _____ symbol is used as the not-equal-to operator.
!=
In Python the _____ symbol is used as the equality operator.
==
When using the _____ operator, one or both subexpressions must be true for the compound expression to be true.
Or
A compound Boolean expression created with the _______________ operator is true only if both of its subexpressions are true.
and
When using the _____ operator, both subexpressions must be true for the compound expression to be true.
and
Multiple Boolean expressions can be combined by using a logical operator to create _____ expressions.
compound
A(n) _____ structure is a logical design that controls the order in which a set of statements execute.
control
The decision structure that has two possible paths of execution is known as _____.
dual alternative
What is the result of the following Boolean expression, if x equals 5, y equals 3, and z equals 8? not (x < y or z > x) and y < z
false
What is the result of the following Boolean expression, if x equals 5, y equals 3, and z equals 8? x < y and z > x
false
A ________________ is a Boolean variable that signals when some condition exists in the program.
flag
You use a(n) ____________ statement to write a single alternative decision structure.
if
Which of the following is the correct if clause to use to determine whether choice is other than 10?
if choice != 10:
Which of the following is the correct if clause to determine whether y is in the range 10 through 50?
if y >= 10 and y <= 50
and, or, and not are _________________ operators.
logical
Which logical operators perform short-circuit evaluation?
or, and
The symbols > < and == are all _____________ operators.
relational
What is the result of the following Boolean expression, if x equals 5, y equals 3, and z equals 8? x < y or z > x
true
A Boolean variable can reference one of two values: _____.
true or false
What does the following expression mean? x <= y
x is less than or equal to y