Exam 4: Decision Structures and Boolean Logic

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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

(Multiple Choice)
4.7/5
(39)

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

(Multiple Choice)
4.9/5
(33)

The Python language is not sensitive to block structuring of code.

(True/False)
4.8/5
(30)

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

(Multiple Choice)
4.9/5
(38)

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

(Multiple Choice)
4.7/5
(26)

Expressions that are tested by the if statement are called Boolean expressions.

(True/False)
4.7/5
(39)

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

(Multiple Choice)
4.8/5
(37)

A(n) _______________ expression is made up of two or more Boolean expressions.

(Short Answer)
4.8/5
(28)

The _______________ statement is used to create a decision structure.

(Short Answer)
4.9/5
(37)

Which logical operators perform short-circuit evaluation?

(Multiple Choice)
4.7/5
(42)

The logical _______________ operator reverses the truth of a Boolean expression.

(Short Answer)
4.7/5
(47)

Boolean variables are commonly used as _______________ to indicate whether a specific condition exists.

(Short Answer)
4.8/5
(37)

Python uses the same symbols for the assignment operator and the equality operator.

(True/False)
4.8/5
(44)

Python allows you to compare strings, but it is not case sensitive.

(True/False)
4.8/5
(31)

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

(Multiple Choice)
4.9/5
(36)
Showing 21 - 35 of 35
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)