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
Multiple Boolean expressions can be combined by using a logical operator to create _____ expressions.
(Multiple Choice)
4.8/5
(29)
A(n) _______________ statement will execute one block of statements if its condition is true, or another block if its condition is false.
(Short Answer)
5.0/5
(40)
A(n) _____ structure is a logical design that controls the order in which a set of statements execute.
(Multiple Choice)
4.8/5
(33)
Python allows you to compare strings, but it is not case sensitive.
(True/False)
5.0/5
(28)
An action in a single alternative decision structure is performed only when the condition is true.
(True/False)
4.9/5
(43)
When using the _____ operator, both subexpressions must be true for the compound expression to be true.
(Multiple Choice)
4.8/5
(42)
Python uses the same symbols for the assignment operator and the equality operator.
(True/False)
4.9/5
(39)
The logical _______________ operator reverses the truth of a Boolean expression.
(Short Answer)
4.9/5
(37)
In Python, the _____ symbol is used as the not-equal-to operator.
(Multiple Choice)
4.8/5
(36)
Which of the following is the correct if clause to use to determine whether choice is other than 10?
(Multiple Choice)
4.8/5
(35)
Nested decision structures are one way to test more than one condition.
(True/False)
4.8/5
(35)
Which of the following is the correct if clause to determine whether y is in the range 10 through 50?
(Multiple Choice)
4.9/5
(37)
Showing 21 - 35 of 35
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)