Each of the following questions is worth 4 points.
7 % 2
1
Control C
not False
True
while
loop with the following header ever stop?
while True:
no
a statement
from the corresponding argument in the function call
anything that can be turned into a value
no
True and False
False
built-in functions
**
True or False
True
7 // 2
3
a local variable
True and False
if
statement which
prints the letter grade for each range of scores according to the following table
A >= 90 B >= 80 C >= 70 D >= 60 F < 60
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")