Exam 2: Input, Processing, and Output
Exam 1: Introduction to Computers and Programming35 Questions
Exam 2: Input, Processing, and Output35 Questions
Exam 3: Simple functions34 Questions
Exam 4: Decision Structures and Boolean Logic35 Questions
Exam 5: Repetition Structures35 Questions
Exam 6: Value-Returning functions and Modules35 Questions
Exam 7: files and Exceptions35 Questions
Exam 8: Lists and Tuples35 Questions
Exam 9: More About Strings35 Questions
Exam 10: Dictionaries and Sets35 Questions
Exam 11: Classes and Object-Oriented Programming35 Questions
Exam 12: Inheritance35 Questions
Exam 13: Recursion35 Questions
Exam 14: GUI Programming35 Questions
Select questions type
A(n) _______________ character is a special character that is preceded with a backslash, appearing inside a string literal.
(Short Answer)
4.7/5
(32)
When applying the .3f formatting specifier to the following number, 76.15854, the result is _______________.
(Short Answer)
4.9/5
(35)
The program development cycle is made up of _____ steps that are repeated until no errors can be found in the program.
(Multiple Choice)
4.9/5
(39)
What is the output of the following print statement? print('The path is D:\\sample\\test.')
(Multiple Choice)
4.8/5
(34)
After the execution of the following statement, the variable price will reference the value _____. price = int(68.549)
(Multiple Choice)
4.9/5
(42)
The % symbol is the remainder operator and it is also known as the _______________ operator.
(Short Answer)
4.7/5
(40)
If value1 is 2.0 and value2 is 12, what is the output of the following command? print(value1 * value2)
(Multiple Choice)
4.9/5
(33)
A(n) _______________ is a name that represents a value stored in the computer's memory.
(Short Answer)
4.8/5
(40)
Python formats all floating-point numbers to two decimal places when outputting using the print statement.
(True/False)
4.8/5
(45)
The \t escape character causes the output to skip over to the next horizontal tab.
(True/False)
4.9/5
(31)
After the execution of the following statement, the variable sold will reference the numeric literal value as a(n) _____ data type: sold = 256.752
(Multiple Choice)
4.7/5
(38)
What symbol is used to mark the beginning and end of a string?
(Multiple Choice)
4.8/5
(26)
Which mathematical operator is used to raise five to the second power in Python?
(Multiple Choice)
4.7/5
(39)
Showing 21 - 35 of 35
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)