<
RHD
/>
Home
Blog
Quiz
Resources
About
Contact
Enlist
// guest
▾
Login
Request Account
[ light ]
// Control Flow
Control Flow Quiz
// question 1 of 10
What is printed? for i in range(0): print(i)?
Error
0
Nothing
// question 2 of 10
What does == do?
Compares values
Adds values
Assigns values
// question 3 of 10
What does continue do in a while loop?
Resets variable
Starts next iteration
Stops loop
// question 4 of 10
What is printed? for i in range(5): if i==3: continue else: print(i)?
0 1 2 3 4
3
0 1 2 4
// question 5 of 10
What is printed? x=0 while x<3: print(x) x+=1?
1 2 3
0 1 2 3
0 1 2
// question 6 of 10
What is printed? if 2 > 5: print(""Yes"")?
Nothing
Yes
Error
// question 7 of 10
What is printed? for i in range(2): print(""**"")?
2 lines of **
1 line of **
4 stars
// question 8 of 10
What is printed? for i in range(5): if i%2==0: print(i)?
1 3 5
0 2 4
0 1 2 3 4
// question 9 of 10
What is printed? if 5 > 3: print(""Yes"")?
Error
Yes
No
// question 10 of 10
What is the last value in range(5)?
3
5
4
Submit Answers →