Python Chapter 3 quiz
In python the ______ symbol is used as the not-equal-to operator
!=
When using the _____ logical operator, both subexpressions must be true for the compound expression to be true
"and"
In Python the _______ symbol is used as the equal-to operator
==
T or F: Python allows you to compare strings, but it is not case sensitive
False
T or F: Python uses the same symbols for the assignment operator as for the equality operator
False
T or F: The Python language is not sensitive to block structuring of code
False
What is the result of the following Boolean expression, given that x=5, y-3, and z=8? x < y AND z > x
False
What is the result of the following Boolean expression, given that x=5, y=3 and z=8 not ( x < y OR z > x ) AND y < z
False
T or F: Nested decision statements are one way to test more than one condition
True
T or F: The "if" statement causes one or more statements to execute only when a Boolean expression is true
True
What is the result of the following Boolean expression, given that x=5, y=3 and z= 8? x < y OR z > x
True
A Boolean variable can reference one of two values which are
True or False
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 as set of statements execute
control
The decision structure that has two possible paths of execution is known as _____
dual alternative
Boolean variable are commonly used as ____ to indicate whether a specific condition exist
flags
Which of the following is the correct "if" clause to determine whether "choice" is anything other than 10?
if choice != 1-:
Which of the following "if" clause to determine whether "y" is in the range of 10-50, inclusive?
if y >= 10 AND y <= 50:
What does the following expression mean? x <= y
x is less than or equal to y