Exam 3: Decision Structures and Boolean Logic

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

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

Free
(True/False)
4.8/5
(37)
Correct Answer:
Verified

False

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

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

True

Which logical operators perform short-circuit evaluation?

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

C

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

(Multiple Choice)
4.8/5
(39)

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

(Short Answer)
4.8/5
(38)

Decision structures are also known as selection structures.

(True/False)
4.8/5
(36)

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

(Short Answer)
4.9/5
(46)

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

(Short Answer)
4.9/5
(38)

A Boolean variable can reference one of two values which are

(Multiple Choice)
4.9/5
(35)

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

(Multiple Choice)
4.8/5
(27)

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

(Multiple Choice)
4.8/5
(40)

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

(True/False)
4.8/5
(37)

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

(True/False)
4.7/5
(30)

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

(True/False)
4.9/5
(36)

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.8/5
(26)

What is the result of the following Boolean expression,given that x = 5,y = 3,and z = 8? X < y or z > x

(Multiple Choice)
4.9/5
(36)

Short -circuit evaluation is only performed with the not operator.

(True/False)
4.8/5
(42)

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

(Multiple Choice)
4.8/5
(36)

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

(Short Answer)
4.8/5
(44)

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

(Multiple Choice)
4.9/5
(35)
Showing 1 - 20 of 40
close modal

Filters

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