Questions and Answers11
The python standard library's ___________ module contains numerous functions that can be
used in mathematical calculations - ANSWERS-math
** - ANSWERS-exponent
What type of loop structure repeats the code a specific number of times - ANSWERS-count
controlled loop
what type of loop structure repeats the code based on the value of boolean expression -
ANSWERS-condition controlled loop
Augmented Assignment Operators - ANSWERS-+=, -=, *=, /=, %=
a variable used to keep a running total is called an - ANSWERS-accumulator
___________ is the process of inspecting data that has been input into a program in order to
ensure that the data is valid before it is used in a computation - ANSWERS-input validation
an _____________ structure is a structure that causes a statement or a set of - ANSWERS-
repitition
the first operation is called the ___________ and its purpose is to get the first input value that
will be tested by the validation loop - ANSWERS-priming read
, in python, a comma separated sequence of data items that are enclosed in a set of brackets is
called a - ANSWERS-list
in python, the variable in the for clause is referred to as the _____________ because it is the
target of an assignment at the beginning of each loop iteration - ANSWERS-target variable
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 - ANSWERS-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 - ANSWERS-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()