Exam 3: Decision Structures and Boolean Logic

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

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

(Multiple Choice)
4.8/5
(29)

A(n) _______________ statement will execute one block of statements if its condition is true, or another block if its condition is false.

(Short Answer)
5.0/5
(40)

Short-circuit evaluation is performed with the not operator.

(True/False)
4.8/5
(36)

What does the following expression mean? X <= y

(Multiple Choice)
4.9/5
(36)

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

(Multiple Choice)
4.8/5
(41)

A(n) _____ structure is a logical design that controls the order in which a set of statements execute.

(Multiple Choice)
4.8/5
(33)

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

(True/False)
5.0/5
(28)

An action in a single alternative decision structure is performed only when the condition is true.

(True/False)
4.9/5
(43)

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

(Multiple Choice)
4.8/5
(42)

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

(True/False)
4.9/5
(39)

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

(Short Answer)
4.9/5
(37)

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

(Multiple Choice)
4.8/5
(36)

Which of the following is the correct if clause to use to determine whether choice is other than 10?

(Multiple Choice)
4.8/5
(35)

Nested decision structures are one way to test more than one condition.

(True/False)
4.8/5
(35)

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

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

Filters

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