Python Programming Ch. 3

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

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

!=

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

==

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

Or

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

and

When using the _____ operator, both subexpressions must be true for the compound expression to be true.

and

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 a set of statements execute.

control

The decision structure that has two possible paths of execution is known as _____.

dual alternative

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

false

What is the result of the following Boolean expression, if x equals 5, y equals 3, and z equals 8? x < y and z > x

false

A ________________ is a Boolean variable that signals when some condition exists in the program.

flag

You use a(n) ____________ statement to write a single alternative decision structure.

if

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

if y >= 10 and y <= 50

and, or, and not are _________________ operators.

logical

Which logical operators perform short-circuit evaluation?

or, and

The symbols > < and == are all _____________ operators.

relational

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

true

A Boolean variable can reference one of two values: _____.

true or false

What does the following expression mean? x <= y

x is less than or equal to y


Set pelajaran terkait

LS1 Week 8 Chapter 41 Management of Pt With Musculoskeletal Disorders

View Set

Lesson 1 Intro To Short Stories (Completed)

View Set

Conceptual Physics: Momentum, Impulse, and Collisions

View Set

Mental health Nursing Videbeck 22-24

View Set

map assignment - australia/oceania

View Set

Learning Quiz | Sexually Transmitted Infections

View Set

Unit 11 - Types of Investment Risks

View Set

AP Euro Chapter 15 Final study guide

View Set