a

Ace your homework & exams now with Quizwiz!

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

!=

In Python the __________ symbol is used as the equal operator.

==

In Python, ____________________ literals can be written in several ways, but most programmers prefer the use of the standard values True and False.

Boolean

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

F

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

F

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

T

A compound Boolean expression created with the ___________ operator is TRUE only if both of its subexpressions are TRUE.

and

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

compound

Which of the following requires that a condition be tested within the loop to determine whether the loop should continue?

conditional iteration

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

When an if-else statement needs to allow for more than two possible alternatives, you use a(n) ____________ clause.

elif

A ____________ is a Boolean-valued variable used to report whether a certain circumstance has occurred.

flag

Which of the following is the correct if clause to determine whether choice is anything 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, inclusive?

if y >= 10 and y <= 50:

Using a while loop to ensure a proper response is received from a request is called ____________.

input validation

and, or, and not are __________ operators.

logical

When an if-else statement contains other if-else statements, it is said to be

nested

When one loop is contained in the body of another loop, it is said to be ____________.

nested

Which logical operators perform short-circuit evaluation?

or, and

The ____________ statement is a do-nothing statement.

pass

When Python stops evaluating a compound condition with the logical and operator because a condition evaluates to False, it is called ____________evaluation.

short-circuit

When an if-elif-else statement is evaluated, which block of statements is evaluated?

the first condition satisfied

What Python loop repeatedly executes a block of statements as long as a certain condition is met?

while

What does the following expression mean? x <= y

x is less than or equal to y


Related study sets

CompTIA Chapter 5 Topic A... Explain Characteristics of Routing

View Set

CH. 57 MANAGEMENT OF PATIENTS WITH BURN INJURY PREPU

View Set