Exam 2: Input, Processing, and Output
Exam 1: Introduction to Computers and Programming36 Questions
Exam 2: Input, Processing, and Output35 Questions
Exam 3: Decision Structures and Boolean Logic35 Questions
Exam 4: Repetition Structures34 Questions
Exam 5: Functions and Modules69 Questions
Exam 6: Files and Exceptions34 Questions
Exam 7: Lists and Tuples35 Questions
Exam 8: More About Strings35 Questions
Exam 9: Dictionaries and Sets35 Questions
Exam 10: Classes and Object Oriented Programming35 Questions
Exam 11: Inheritance35 Questions
Exam 12: Recursion35 Questions
Exam 13: GUI Programming35 Questions
Select questions type
A(n) _______________ character is a special character that is preceded with a backslash, appearing inside a string literal.
Free
(Short Answer)
4.9/5
(88)
Correct Answer:
escape
Python formats all floating-point numbers to two decimal places when outputting using the print statement.
Free
(True/False)
5.0/5
(77)
Correct Answer:
False
Python uses _______________ to categorize values in memory.
Free
(Short Answer)
4.8/5
(75)
Correct Answer:
data types
A(n) _______________ is a name that represents a value stored in the computer's memory.
(Short Answer)
4.9/5
(74)
Python allows programmers to break a statement into multiple lines.
(True/False)
4.8/5
(72)
_______________ are notes of explanation that document lines or sections of a program.
(Short Answer)
4.7/5
(71)
According to the behavior of integer division, when an integer is divided by an integer, the result will be a float.
(True/False)
4.8/5
(86)
What is the output of the following print statement?
Print('The path is D:\\sample\\test.')
(Multiple Choice)
5.0/5
(83)
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
(83)
The _______________ specifier is a special set of characters that specify how a value should be formatted.
(Short Answer)
4.9/5
(80)
In Python, math expressions are evaluated from left to right, no matter what the operators are.
(True/False)
4.9/5
(71)
Computer programs typically perform three steps: Input is received, some process is performed on the input, and output is produced.
(True/False)
4.8/5
(72)
When using the camelCase naming convention, the first word of the variable name is written in lowercase letters and the first character of the second and subsequent words are written in uppercase letters.
(True/False)
4.9/5
(81)
The _____ built-in function is used to read a number that has been typed on the keyboard.
(Multiple Choice)
4.8/5
(77)
When applying the .3f formatting specifier to the following number, 76.15854, the result is _______________.
(Short Answer)
4.8/5
(79)
After the execution of the following statement, the variable price will reference the value _____.
Price = int(68.549)
(Multiple Choice)
4.8/5
(79)
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.8/5
(73)
Showing 1 - 20 of 35
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)