All programs are normally stored in ROM and are loaded into RAM as needed for
processing.
True or False - ANS-False
The Python language uses a compiler which is a program that both translates and
executes the instructions in a high-level language.
true or false - ANS-False
What type of volatile memory is usually used only for temporary storage while running a
program?
TVM
TMM
RAM
ROM - ANS-RAM
A ________ has no moving parts and operates faster than a traditional disk drive.
DVD drive
Solid State Drive
Hyper Drive
Jumper Drive - ANS-Solid State Drive
Select all that apply. To create a Python program you can use...
IDLE
Text Editor
A word processor if you save your file as a .docx
Excel - ANS-Assembly
Python formats all floating-point numbers to two decimal places when outputting with
the print statement.
,true or false - ANS-IDLE
A Text Editor
In Python, math expressions are always evaluated from left to right, no matter what the
operators are.
true or false - ANS-False
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.
end
separator
stop
newLine - ANS-newline
What symbol is used to mark the beginning and end of a string?
a quote mark (")
a comma (,)
an asterisk (*)
a slash (/) - ANS-a quote mark ("")
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?
- It will be easier for another programmer who may need to use this code to understand
the purpose of the number wherever it is used in the code.
- If the tax amount changes to 7.0%, the value will only have to be changed in one
place.
, - It avoids the risk that any change to the value of sales tax will be made incorrectly or
that an instance of the tax value might be missed as might occur if the number had to
be changed in multiple locations.
- It allows the end-user to always see the value of the sales tax. - ANS-it avoids the risk
that any change to the value of sales tax will be made incorrectly or than an instance of
the tax value might be missed as might occur if the number had to be changed in
multiple locations
Nested decision statements are one way to test more than one condition.
true or false - ANS-true
The decision structure that has two possible paths of execution is known as
two alternative
single alternative
double alternative
dual alternative - ANS-dual alternative
What is the result of the following Boolean expression, given that
x = 5, y = 3, and z= 8?
not (x < y or z > x) and y < z
False
True
5
8 - ANS-false
In Python the ________ symbol is used as the not-equal-to operator.
!=
<>
==
<= - ANS-!=