Questions & Answers.
What is the informal language, used by programmers use to create models of programs, that has no
syntax rules and is not meant to be compiled or executed?
a. flowchart
b. algorithm
c. source code
d. pseudocode - CORRECT ANSWER d. pseudocode
A(n) ________ is a diagram that graphically depicts the steps that take place in a program.
a. flowchart
b. algorithm
c. source code
d. pseudocode - CORRECT ANSWER a. flowchart
The ________ function reads a piece of data that has been entered at the keyboard and returns that
piece of data, as a string, back to the program.
a. input()
b. output()
c. eval_input()
d. str_input() - CORRECT ANSWER a. input()
The line continuation character is a
a. #
, b. %
c. &
d. \ - CORRECT ANSWER d. \
Which mathematical operator is used to raise 5 to the second power in Python?
a. /
b. **
c. ^
d. ~ - CORRECT ANSWER b. **
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.
a. stop
b. end
c. separator
d. newLine - CORRECT ANSWER b. end
After the execution of the following statement, the variable sold will reference the numeric literal value
as (n) ________ data type.
sold = 256.752
a. int
b. float
c. str
d. currency - CORRECT ANSWER b. float
After the execution of the following statement, the variable price will reference the value