Exam 2: Input, Processing, and Output
Exam 1: Introduction to Computers and Programming39 Questions
Exam 2: Input, Processing, and Output40 Questions
Exam 3: Decision Structures and Boolean Logic40 Questions
Exam 4: Repetition Structures41 Questions
Exam 5: Functions66 Questions
Exam 6: Files and Exceptions40 Questions
Exam 7: Lists and Tuples40 Questions
Exam 8: More About Strings37 Questions
Exam 9: Dictionaries and Sets39 Questions
Exam 10: Classes and Object-Oriented Programming38 Questions
Exam 11: Inheritance36 Questions
Exam 12: Recursion35 Questions
Exam 13: Gui Programming42 Questions
Select questions type
The % symbol is the remainder operator,also known as the ___________ operator.
Free
(Short Answer)
4.9/5
(31)
Correct Answer:
modulus,mod
Python uses __________ to categorize values in memory.
Free
(Short Answer)
4.7/5
(40)
Correct Answer:
data types
In Python,math expressions are always evaluated from left to right,no matter what the operators are.
(True/False)
4.7/5
(41)
What is the output of the following print statement?
Print('The path is D:\\sample\\test.')
(Multiple Choice)
4.8/5
(38)
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
(35)
Select all that apply. Which of the following are steps in the program development cycle?
(Multiple Choice)
4.8/5
(39)
In a print statement,you can set the __________ argument to a space or empty string to stop the output from advancing to a new line.
(Multiple Choice)
4.8/5
(35)
What is the output of the following command,given that value1 = 2.0 and value2 = 12?
Print(value1 * value2)
(Multiple Choice)
4.8/5
(41)
The \t escape character causes the output to skip over to the next horizontal tab.
(True/False)
4.8/5
(43)
After the execution of the following statement,the variable price will reference the value __________.
Price = int(68.549)
(Multiple Choice)
4.8/5
(41)
Select all that apply. Assume you are writing a program that calculates a user's total order cost that includes sales tax of 6.5%.
Which of the following are advantages of using a named constant to represent the sales tax instead of simply entering 0.065 each time the tax is required in the code?
(Multiple Choice)
4.8/5
(42)
A(n)__________ is a single task that the program must perform in order to satisfy the customer.
(Short Answer)
4.8/5
(37)
In the expression 12.45 + 3.6,the values to the right and left of the + symbol are the __________.
(Short Answer)
4.8/5
(40)
A(n)__________ is a diagram that graphically depicts the steps that take place in a program?
(Multiple Choice)
4.7/5
(41)
Which mathematical operator is used to raise 5 to the second power in Python?
(Multiple Choice)
4.8/5
(37)
A(n)__________ is a name that represents a value stored in the computer's memory.
(Short Answer)
4.7/5
(33)
Showing 1 - 20 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)