Each of the following questions is worth 4 points.
a statement
a function
a function call
a literal
anything that can be turned into a value
literals, variables, calculations, function calls
**
True and False
False
True or False
True
one more than the last number in the list
the first number in the list
the difference between each number in the list
parameters
from the corresponding argument in the function call
arguments
if signal == "green":
print("Go")
elif signal == "yellow":
print("Slow")
elif signal == "red":
print("Stop")
else:
print("Error")
while loop that prints the numbers from 1 to 10,
each on a separate line. range function here. while loop. num = 1
while num <= 10:
print(num)
num += 1
for loop that prints the EVEN numbers from 2
to 10 using the range function.
for num in range(2,11,2):
print(num)
def is_divisible_by_three(num):
if (num % 3 == 0):
print("True")
else:
print('False')