Exam 2: Data and Expressions
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
Based on its rules of operator precedence, Python would evaluate the expression below to
4 + 2 * 5 + 3**2
(Multiple Choice)
4.8/5
(38)
Give a Python statement using type conversion to convert the floating value of variable x = 1.24 to an integer value.
(Short Answer)
4.8/5
(42)
Assuming the integer variable num has already been assigned a value, give a Python statement incrementing num by 5.
(Short Answer)
4.8/5
(33)
An ______________ is a sequence of one or more characters that must not begin with a digit.
(Short Answer)
4.8/5
(39)
In Python, the resulting value from a numeric calculation resulting in arithmetic overflow is
(Multiple Choice)
4.8/5
(43)
An escape sequence in Python is a sequence of characters beginning with '\n'.
(True/False)
4.8/5
(35)
In Python, an empty string may be represented with a pair of matching quotes containing only a single space character.
(True/False)
4.7/5
(38)
The character encoding of the character '2' in Python is 00000010.
(True/False)
4.9/5
(45)
The id function produces a unique number identifying a specific value (object) in memory.
(True/False)
4.8/5
(30)
What is displayed by the following?
Print(format( '-', '->8 '), 'Hello ')
(Multiple Choice)
4.8/5
(31)
Showing 61 - 71 of 71
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)