Chapter 3

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

In Python the ___ symbol is used as the not-equal-to operator

!=

What is the result of the following Boolean expression, given that x = 5, y = 3, and z = 8? x < y or z > x

True

Which logical operators perform short-circuit evaluation?

or, and

In Python the ___ symbol is used as the equality operator.

==

Which of the following is the correct if clause to determine whether choice is anything other than 10?

if choice != 10:

When using the ___ logical operator, one or both of the subexpressions must be true for the compound expression to be true.

or

Multiple Boolean expressions can be combined by using a logical operator to create ___ expressions.

compound

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 < z =

False

A boolean variable can reference one of two values which are

True or False

When using the ___ logical operator, both subexpressions bust be true for the compound expression to be true.

and

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

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()

Which of the following will hide the turtle if it is visible?

if turtle.invisible(): turtle.hideturtle()

Which of the following is the correct if clause to determine whether y is in the range 10 through 50, inclusive?

if y >= 10 and y <= 50:

What does the following expression mean? x <= y

x is less than or equal to y


संबंधित स्टडी सेट्स

Drugs, Discovery and Development Final

View Set

US - Hechos importantes de España

View Set

Ch. 24: The Fetal Head and Brain (Content)

View Set