NEW
Font size
WorksheetsPython 3 Loops
Total questions: 55
Worksheet time: 2hrs 30mins
4
3
2
1
3
2
1
0
4
3
2
1
3
2
1
0
4
3
2
1
3
2
1
0
8
6
4
2
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
......(repeated continuously)
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
(repeated continuously)
break
False
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
(repeated continuously)
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
2
11
2
21
2
3
11
2
3
21
print(str(i) * 5)
print("i" * i)
print("i" * i)
print(str(i) * i)
