Exam 3: Decision Structures and Boolean Logic
Exam 1: Introduction to Computers and Programming36 Questions
Exam 2: Input, Processing, and Output35 Questions
Exam 3: Decision Structures and Boolean Logic35 Questions
Exam 4: Repetition Structures34 Questions
Exam 5: Functions and Modules69 Questions
Exam 6: Files and Exceptions34 Questions
Exam 7: Lists and Tuples35 Questions
Exam 8: More About Strings35 Questions
Exam 9: Dictionaries and Sets35 Questions
Exam 10: Classes and Object Oriented Programming35 Questions
Exam 11: Inheritance35 Questions
Exam 12: Recursion35 Questions
Exam 13: GUI Programming35 Questions
Select questions type
The decision structure that has two possible paths of execution is known as _____.
Free
(Multiple Choice)
4.8/5
(32)
Correct Answer:
C
The Python language is not sensitive to block structuring of code.
Free
(True/False)
4.7/5
(40)
Correct Answer:
False
In Python the _____ symbol is used as the equality operator.
Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
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)
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)