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
In Python, the _____ symbol is used as the not-equal-to operator.
Free
(Multiple Choice)
4.9/5
(40)
Correct Answer:
D
Which of the following is the correct if clause to use to determine whether choice is other than 10?
Free
(Multiple Choice)
4.7/5
(28)
Correct Answer:
A
An action in a single alternative decision structure is performed only when the condition ist.
Free
(True/False)
5.0/5
(34)
Correct Answer:
True
A(n) _____ structure is a logical design that controls the order in which a set of statements execute.
(Multiple Choice)
4.9/5
(33)
A(n) _______________ statement will execute one block of statements if its condition ist, or another block if its condition is false.
(Short Answer)
4.9/5
(31)
A(n) _______________ operator determines whether a specific relationship exists between two values.
(Short Answer)
4.8/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
(39)
The if statement causes one or more statements to execute only when a Boolean expression ist.
(True/False)
4.8/5
(41)
In a decision structure, the action is _______________ executed because it is performed only when a certain condition ist.
(Short Answer)
4.8/5
(33)
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.7/5
(39)
In Python the _____ symbol is used as the equality operator.
(Multiple Choice)
4.9/5
(35)
Nested decision structures are one way to test more than one condition.
(True/False)
4.9/5
(41)
In flowcharting, the _______________ symbol is used to represent a Boolean expression.
(Short Answer)
4.9/5
(40)
A(n) _______________ decision structure provides only one alternative path of execution.
(Short Answer)
4.9/5
(34)
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
(33)
The not operator is a unary operator and it must be a compound expression.
(True/False)
4.9/5
(42)
Showing 1 - 20 of 35
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)