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
The _____ and _____ characters are used in format specifiers in Python to left or right justify a string in a specified field width.
(Short Answer)
4.8/5
(36)
An operator is a symbol that represents a particular operation that may be performed on its operands.
(True/False)
4.9/5
(36)
The - symbol is used as both a unary and a binary operator in Python.
(True/False)
4.9/5
(40)
Give a Python statement that assigns variable num to the integer value one thousand, two hundred and twenty-four.
(Short Answer)
4.7/5
(32)
A backslash (\) at the end of a line of a Python program is used to
(Multiple Choice)
4.9/5
(38)
Floating-point values have both a limited range and a limited precision.
(True/False)
4.9/5
(37)
Python is case sensitive, so a variable Line is different from a variable named line.
(True/False)
4.9/5
(46)
You cannot rely on the result of floating-point calculations to be mathematically precise.
(True/False)
4.9/5
(38)
A numeric literal may be an __________ or _________________ value.
(Short Answer)
4.9/5
(42)
In Python, a positive sign may be placed in front of positive numeric values.
(True/False)
4.8/5
(44)
Arithmetic overflow can result from the division of two floating-point values.
(True/False)
4.9/5
(37)
A calculated result too small to be represented is referred to as ______________________.
(Short Answer)
4.9/5
(32)
Indicate what is displayed by the following.
tax = .08
print('Your cost: $', format((1 + tax) * 12.99, '.2f''))
(Short Answer)
4.9/5
(37)
An identifier that already has a predefined meaning in Python, and therefore cannot be used as a variable, is known as a _________.
(Short Answer)
4.8/5
(33)
The built-in _________________ function of Python can be used to control the display of both numeric and string values.
(Short Answer)
4.8/5
(37)
Showing 21 - 40 of 71
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)