Exam 3: Control Structures
Exam 1: Introduction102 Questions
Exam 2: Data and Expressions71 Questions
Exam 3: Control Structures129 Questions
Exam 4: Lists85 Questions
Exam 5: Functions83 Questions
Exam 6: Objects and Their Use54 Questions
Exam 7: Modular Design62 Questions
Exam 8: Text Files58 Questions
Exam 9: Dictionaries and Sets33 Questions
Exam 10: Object-Oriented Programming81 Questions
Exam 11: Recursion27 Questions
Select questions type
Give an appropriate expression for each of the following:
-To determine if the name 'Charles' appears in a list called names.
(Short Answer)
4.9/5
(41)
Evaluate the following Python expressions for the variable assignments given.
-num1 > num2 and flag1

(True/False)
4.9/5
(37)
Which of the three forms of control flow is implicit in a program?
(Short Answer)
4.8/5
(38)
What are the three forms of control flow provided by programming languages?
(Short Answer)
4.7/5
(36)
Boolean literals True and False are considered Boolean expressions.
(True/False)
4.7/5
(44)
The elif header provides a convenient means of using a single if statement for multiway selection that can always be implemented instead by use of nested if statements.
(True/False)
4.9/5
(43)
Multiway selection in Python can be constructed either by the use of a single if statement (with the use of multiple headers), or by the construction of a set of __________ if statements.
(Short Answer)
4.8/5
(37)
Which form of control flow repeatedly executes a set of instructions?
(Short Answer)
4.8/5
(36)
Examine the following lines of code:
While True:
Print('Hello World!')
This is an example of
(Multiple Choice)
4.7/5
(33)
Both the Boolean and _____________ operators evaluate to a Boolean result.
(Short Answer)
5.0/5
(43)
A definite loop is a loop that always executes at least once, whereas an indefinite loop is a loop that may or not execute at all.
(True/False)
4.8/5
(34)
Fill in the table, evaluating the Boolean expressions for x and y with the given values. Some have already been filled in.
(Essay)
4.8/5
(32)
Showing 21 - 40 of 129
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)