<
RHD
/>
Home
Blog
Quiz
Resources
About
Contact
// guest
▾
Login
Request Account
[ light ]
// Control Flow
Control Flow Quiz
// question 1 of 10
What happens after break?
Loop stops
Loop repeats
Program crashes
// question 2 of 10
What is printed? for i in range(5): if i==3: continue else: print(i)?
0 1 2 4
0 1 2 3 4
3
// question 3 of 10
What is the result of 4 != 5?
False
4
True
// question 4 of 10
What is a nested loop?
An if inside while
A loop inside another loop
A print inside loop
// question 5 of 10
What does break do in a while loop?
Repeats condition
Stops the loop
Skips iteration
// question 6 of 10
What is printed? if not (5 > 2): print(""OK"")?
OK
Error
Nothing
// question 7 of 10
What is printed? if 10 > 5: print(""Big"") else: print(""Small"")?
Small
Error
Big
// question 8 of 10
What is printed? if False: print(""A"") else: print(""B"")?
Error
A
B
// question 9 of 10
What is printed? for i in range(2): for j in range(3): print(j)?
1 2 3 twice
0 1 2 once
0 1 2 twice
// question 10 of 10
What is printed? for i in range(3): print(""#""*i)?
### ## #
blank # ##
0 1 2
Submit Answers →