expression is made up of two or more Boolean expressions.
  • compound
  • relational
  • not, and
  • Diamond
The logical _______________ operator reverses the truth of a Boolean expression.
  • true
  • False
  • not
  • or
Expressions that are tested by the if statement are called Boolean expressions.T/F
  • True
  • False
An action in a single alternative decision structure is performed only when the condition is true.T/F
  • True
  • False
The decision structure that has two possible paths of execution is known as
  • Single alternative
  • conditionally
  • relational
  • Dual alternative
executed because it is performed only when a specific condition is true.
  • relational
  • conditionally
  • Single alternative
  • Dual alternative
Which logical operators perform short-circuit evaluation?
  • Compound
  • Diamond
  • not, and
  • not
Short -circuit evaluation is only performed with the not operator.T/F
  • True
  • False
The turtle.isdown() function returns _____________ if the turtle's pen is down.
  • not
  • relational
  • true
  • False
In Python the ________ symbol is used as the not-equal-to operator.
  • !=
  • or
  • False
  • ==
Python provides a special version of a decision structure known as the ___________ statement, which makes the logic of the nested decision structure simpler to write.
  • True/False
  • False
  • if-elif-else
  • if choice != 10:
A(n) ________ structure is a logical design that controls the order in which a set of statements execute.
  • Compound
  • True
  • if-else
  • control
In Python the ________ symbol is used as the equality operator.
  • ==
  • if
  • False
  • !=
Nested decision statements are one way to test more than one condition.T/F
  • True
  • False
Which of the following will hide the turtle if it is visible?
  • if turtle.isvisible(): turtle.hideturtle()
  • if not(turtle.isdown()): turtle.pendown()
  • if choice != 10:
  • not, and
The Python language is not sensitive to block structuring of code.T/F
  • True
  • False
decision structure provides only one alternative path of execution.
  • Dual alternative
  • True
  • conditionally
  • Single alternative
When using the ________ logical operator, both subexpressions must be true for the compound expression to be true.
  • False
  • and
  • not
  • True
The following code snippet will change the turtle's pen size to 4 if it is presently less than 4:if turtle.pensize() < 4:turtle.pensize(4)T/F
  • True
  • False
Boolean variables are commonly used as _______________ to indicate whether a specific condition exists.
  • True/False
  • False
  • if-else
  • flags
Decision structures are also known as selection structures.T/F
  • True
  • False
Multiple Boolean expressions can be combined by using a logical operator to create ________ expressions.
  • control
  • not, and
  • Compound
  • if-else
symbol is used to represent a Boolean expression.
  • compound
  • Diamond
  • False
  • not, and
Which of the following will determine if the turtle's pen is up and will change it to down if that is the case?
  • if not(turtle.isdown()): turtle.pendown()
  • if choice != 10:
  • True
  • if turtle.isvisible(): turtle.hideturtle()
When using the ________ logical operator, one or both of the subexpressions must be true for the compound expression to be true.
  • or
  • not
  • !=
  • True
0 h : 0 m : 1 s

Answered Not Answered Not Visited Correct : 0 Incorrect : 0