Keep scrolling down for answers and more stats ...
Question 1 of 5
Select The Correct Output:
While Loop...
count = 0
while (count < 3):
count = count + 1
print("Hello World")
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
(To ∞)
YES
NO
Question 2 of 5
Select The Correct Output:
For Loop...
for i in range(0, 10, 2):
print(i)
0
1
2
3
(To 10)
0
10
2
0
2
4
6
8
YES
NO
Question 3 of 5
Select The Correct Output:
If-Elif-Else Ladder...
i = 20
if (i == 10):
print("i is 10")
elif (i == 15):
print("i is 15")
elif (i == 20):
print("i is 20")
else:
print("i is not present")
i is 15
i is 20
i is 10
YES
NO
Question 4 of 5
Select The Correct Output:
Assignment Operators...
a = 10
b = a
print(b)
b += a
print(b)
b -= a
print(b)
b *= a
print(b)
10
20
10
100
10
10
10
100
10
10
10
10
YES
NO
Question 5 of 5
Select The Correct Output:
Logical Operators...
a = True
b = False
print(a and b)
print(a or b)
print(not a)
fun quiz though