Ch 3. Quiz

Réussis tes devoirs et examens dès maintenant avec 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, both subexpressions must be true for the compound expression to be true. or and not maybe

And

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 true false 8 5

False

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

Or

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 false 8 5

True

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

compound

Which of the following is the correct if clause to use to determine whether choice is other than 10? if choice != 10: if choice != 10 if choice <> 10: if choice <> 10

if choice != 10

Which logical operators perform short-circuit evaluation? or, not not, and Correct or, and and, or, not

or, and

What does the following expression mean? x <= y x is less than y x is less than or equal to y x is greater than y x is greater than or equal to y

x is less than or equal to y


Ensembles d'études connexes

Erik Erikson's of Psychosocial Development

View Set

mastering quiz unit 20: the heart

View Set

Physical Change and Chemical Change

View Set