ITM 330 Assignment 3

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

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

compound

AND, OR, and NOT are examples of ________ operators.

logical

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

False

Which 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, z=8? x<y or z>x

True

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

and

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 occured

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

When an if-else statement contains other of-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 of-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 certain conditions is met?

while

what does the following expression mean? x<=y

x is less than or equal to y


Related study sets

CCNA 2 Practice Final (as of May 2021)

View Set

Spanish Influence at Home and Abroad

View Set

Asexual and Sexual Reproduction Flash Cards

View Set

Lifespan Developmental Psych Chapter 16

View Set

Chapter 6.2 U.S. History Vocabulary

View Set

SAUNDERS HESI STUDY for PHARM - Endocrine Meds

View Set

GACE: Major British Authors & Summary of Works

View Set

AP US History Chapters 26, 27, and 28

View Set

Final Exam Review US HISTORY Lyn Bordenet S2

View Set