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
(65)

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
(78)

Short-circuit evaluation is performed with the not operator.

(True/False)
4.8/5
(81)

What does the following expression mean? X <= y

(Multiple Choice)
4.9/5
(88)

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

(Multiple Choice)
4.8/5
(83)

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

(Multiple Choice)
4.8/5
(78)

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

(True/False)
5.0/5
(75)

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

(True/False)
4.9/5
(86)

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

(Multiple Choice)
4.8/5
(76)

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

(True/False)
4.9/5
(87)

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

(Short Answer)
4.9/5
(84)

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

(Multiple Choice)
4.8/5
(74)

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

(Multiple Choice)
4.7/5
(72)

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

(True/False)
4.8/5
(80)

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
(84)
Showing 21 - 35 of 35
close modal

Filters

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