Each of the following questions is worth 4 points.
arguments
parameters
Control C
a local variable
from the corresponding argument in the function call
True and False
False
True and False
anything that can be turned into a value
True or False
True
a statement
(2 + 3) * 5
25
a string
while loop with the following header ever stop?
while True:
no
while loop when the boolean expression after the keyword
while becomes false?
the loop stops
an infinite loop
for loop with the
range function.
def print_cubes(min, max):
for n in range(min, max +1):
print(n * n * n)
for loop that prints the odd numbers from 1
to 15. range function
with 3 arguments.
for num in range(1, 16, 2):
print(num)
while loop that prints the numbers 5, 10, 15,
each on a separate line. range function here. while loop.
num = 5
while num <= 15:
print(num)
num += 5
if score >= 90:
print("A")
elif score >= 80:
print("B")
elif score >= 70:
print("C")
elif score >= 60:
print("D")
else:
print("F")