Exam 3: Decision Structures and Boolean Logic
Exam 1: Introduction to Computers and Programming39 Questions
Exam 2: Input, Processing, and Output40 Questions
Exam 3: Decision Structures and Boolean Logic40 Questions
Exam 4: Repetition Structures41 Questions
Exam 5: Functions66 Questions
Exam 6: Files and Exceptions40 Questions
Exam 7: Lists and Tuples40 Questions
Exam 8: More About Strings37 Questions
Exam 9: Dictionaries and Sets39 Questions
Exam 10: Classes and Object-Oriented Programming38 Questions
Exam 11: Inheritance36 Questions
Exam 12: Recursion35 Questions
Exam 13: Gui Programming42 Questions
Select questions type
Python allows you to compare strings,but it is not case sensitive.
Free
(True/False)
4.8/5
(37)
Correct Answer:
False
Nested decision statements are one way to test more than one condition.
Free
(True/False)
4.7/5
(37)
Correct Answer:
True
Which logical operators perform short-circuit evaluation?
Free
(Multiple Choice)
4.9/5
(35)
Correct Answer:
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)