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
The membership operator in of Python can be used to determine if a given value occurs in a particular tuple, or if a given substring occurs in a given string value.
(True/False)
4.7/5
(33)
What is the term for the order that instructions are executed in a program?
(Short Answer)
4.9/5
(40)
Which of the following is not a fundamental form of control that programming languages provide?
(Multiple Choice)
4.8/5
(38)
Evaluate the following Python expressions for the variable assignments given.
-not flag1 or not flag2 and num2 < num1

(True/False)
4.9/5
(34)
An if statement may include the use of both the ________ header and the _________ header.
(Short Answer)
4.8/5
(37)
Write a simple Python program that prompts the user for a given number of pennies, and displays the monetary value of the coins such that "xx cents" is displayed if the total number of pennies is less than 100, "x dollars and xx cents" is displayed if the number of pennies add up to dollars and cents, and "x dollars" is displayed if the pennies add up to whole dollars, with no leftover cents.
(Essay)
4.8/5
(33)
Showing 121 - 129 of 129
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)