Quiz Complete, well Done!
What is the purpose of the 'continue' keyword in a loop?
Which of the following is a valid range for a for loop in Python?
In a for loop, what does the i++ statement typically do?
Which keyword is used to define a for loop?
Which of the following is the correct syntax for a 'while' loop?
What is the output of the following 'for' loop?
for i in range(3):
for j in range(2):
print(i + j)
What is the output of the following code?
for i in range(3, 12, 2):
print(i)
What is the output of the following 'for' loop?
for i in range(1, 6, 2):
print(i)
Which of the following is an example of a nested 'for' loop?
What is the purpose of a 'for' loop?
What is a for loop used for in programming?
Which keyword is used to initiate a 'for' loop in Python?
What does the 'range' function do in a 'for' loop?
How many times will the following 'for' loop iterate?
for i in range(5):
print(i)
In a for loop, which part specifies the number of iterations?