Exam 3: Decision Structures and Boolean Logic

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

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

Free
(Multiple Choice)
4.8/5
(32)
Correct Answer:
Verified

C

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

Free
(True/False)
4.7/5
(40)
Correct Answer:
Verified

False

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

Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
Verified

A

The _______________ statement is used to create a decision structure.

(Short Answer)
4.9/5
(38)

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

(True/False)
4.9/5
(41)

Which logical operators perform short-circuit evaluation?

(Multiple Choice)
4.7/5
(33)

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

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

(True/False)
4.7/5
(40)

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

(Short Answer)
4.9/5
(37)

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

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

(Multiple Choice)
4.7/5
(41)

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

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

(Short Answer)
4.7/5
(33)

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

(Short Answer)
4.9/5
(45)

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.9/5
(34)

Decision structures are also known as selection structures.

(True/False)
4.9/5
(38)

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

(True/False)
4.9/5
(41)

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

(Short Answer)
5.0/5
(44)

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

(Short Answer)
4.8/5
(46)

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

(Short Answer)
4.8/5
(38)
Showing 1 - 20 of 35
close modal

Filters

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