Exam 4: Decision Structures and Boolean Logic

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

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

Free
(Multiple Choice)
4.9/5
(40)
Correct Answer:
Verified

D

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

Free
(Multiple Choice)
4.7/5
(28)
Correct Answer:
Verified

A

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

Free
(True/False)
5.0/5
(34)
Correct Answer:
Verified

True

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

(Multiple Choice)
4.9/5
(33)

Short-circuit evaluation is performed with the not operator.

(True/False)
4.8/5
(40)

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

(Short Answer)
4.9/5
(31)

A(n) _______________ operator determines whether a specific relationship exists between two values.

(Short Answer)
4.8/5
(41)

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

(Multiple Choice)
4.8/5
(39)

Decision structures are also known as selection structures.

(True/False)
4.8/5
(36)

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

(Multiple Choice)
4.8/5
(32)

The if statement causes one or more statements to execute only when a Boolean expression ist.

(True/False)
4.8/5
(41)

In a decision structure, the action is _______________ executed because it is performed only when a certain condition ist.

(Short Answer)
4.8/5
(33)

Python provides a special version of a decision structure known as the _______________ statement, which makes the logic of the nested decision structure simpler to write.

(Short Answer)
4.7/5
(39)

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

(Multiple Choice)
4.9/5
(35)

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

(True/False)
4.9/5
(41)

What does the following expression mean? x <= y

(Multiple Choice)
4.7/5
(35)

In flowcharting, the _______________ symbol is used to represent a Boolean expression.

(Short Answer)
4.9/5
(40)

A(n) _______________ decision structure provides only one alternative path of execution.

(Short Answer)
4.9/5
(34)

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

(Multiple Choice)
4.7/5
(33)

The not operator is a unary operator and it must be a compound expression.

(True/False)
4.9/5
(42)
Showing 1 - 20 of 35
close modal

Filters

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