Exam 4: Decision Structures and Boolean Logic
Exam 1: Introduction to Computers and Programming35 Questions
Exam 2: Input, Processing, and Output35 Questions
Exam 3: Simple functions34 Questions
Exam 4: Decision Structures and Boolean Logic35 Questions
Exam 5: Repetition Structures35 Questions
Exam 6: Value-Returning functions and Modules35 Questions
Exam 7: files and Exceptions35 Questions
Exam 8: Lists and Tuples35 Questions
Exam 9: More About Strings35 Questions
Exam 10: Dictionaries and Sets35 Questions
Exam 11: Classes and Object-Oriented Programming35 Questions
Exam 12: Inheritance35 Questions
Exam 13: Recursion35 Questions
Exam 14: GUI Programming35 Questions
Select questions type
Which of the following is the correct if clause to determine whether y is in the range 10 through 50?
(Multiple Choice)
4.7/5
(39)
The decision structure that has two possible paths of execution is known as _____.
(Multiple Choice)
4.9/5
(33)
The Python language is not sensitive to block structuring of code.
(True/False)
4.8/5
(30)
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
(38)
When using the _____ operator, one or both subexpressions must bet for the compound expression to bet.
(Multiple Choice)
4.7/5
(26)
Expressions that are tested by the if statement are called Boolean expressions.
(True/False)
4.7/5
(39)
Multiple Boolean expressions can be combined by using a logical operator to create _____ expressions.
(Multiple Choice)
4.8/5
(37)
A(n) _______________ expression is made up of two or more Boolean expressions.
(Short Answer)
4.8/5
(28)
The _______________ statement is used to create a decision structure.
(Short Answer)
4.9/5
(37)
The logical _______________ operator reverses the truth of a Boolean expression.
(Short Answer)
4.7/5
(47)
Boolean variables are commonly used as _______________ to indicate whether a specific condition exists.
(Short Answer)
4.8/5
(37)
Python uses the same symbols for the assignment operator and the equality operator.
(True/False)
4.8/5
(44)
Python allows you to compare strings, but it is not case sensitive.
(True/False)
4.8/5
(31)
When using the _____ operator, both subexpressions must bet for the compound expression to bet.
(Multiple Choice)
4.9/5
(36)
Showing 21 - 35 of 35
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)