Python Exam 1 Questions With Correct
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. **
| | | | |
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. **
| | | | |