NEW
Font size
Worksheets[AP CSP] FOR & WHILE LOOPS
Total questions: 20
Worksheet time: 40mins
In a Python program, what would be the iteration variable (looping variable) in the FOR LOOP code?
n
num
value
i
In a Python program, what would be the iteration variable (looping variable) in the WHILE LOOP code?
w
y
z
i
In a Python program, what would be the starting value in the FOR LOOP code?
100
10
5
20
In a Python program, what would be the starting value in the FOR LOOP code?
25
4
1
0
In a Python program, what would be the starting value in the WHILE LOOP code?
20
5
2
15
In a Python program, what would be the starting value in the WHILE LOOP code?
50
3
5
10
In a Python program, what would be the starting value in the WHILE LOOP code?
6
1
0
10
In a Python program, what would be the ending value in the WHILE LOOP code?
0
5
2
20
In a Python program, what would be the ending value in the WHILE LOOP code?
5
50
10
3
In a Python program, what would be the increment value for the looping variable in the WHILE LOOP code?
5
3
-5
1
In a Python program, what would be the increment value for the looping variable in the FOR LOOP code?
15
7
10
1
In a Python program, what would be the ending value in the FOR LOOP code?
15
1
10
100
In a Python program, what would be the increment value for the looping variable in the FOR LOOP code?
15
1
3
5
In a Python program, what would be the increment value for the looping variable in the WHILE LOOP code?
30
1
-3
-10
In a Python program, what would be the increment value for the looping variable in the FOR LOOP code?
-100
1
5
-5
In a Python program, how many iterations(loops) will occur for the FOR LOOP code?
1
10
9
8
In a Python program, how many outputs will occur for the snippet of code?
15
3
6
5
In a Python program, how many outputs will occur for the snippet of code?
5
2
8
4
