<
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? if ""a"" != ""b"": print(""Yes"")?
Yes
Error
Nothing
// question 2 of 10
What is printed? for i in range(3): print(""#""*i)?
blank # ##
0 1 2
### ## #
// question 3 of 10
What is printed? x=1 while x<=3: print(x) x+=1?
1 2
1 2 3
0 1 2 3
// question 4 of 10
What is printed? for i in range(3): pass?
Error
Nothing
0 1 2
// question 5 of 10
What is printed? for i in range(5): if i == 2: break print(i)?
0 1
0 1 2 3 4
2
// question 6 of 10
What is printed? for i in ""hi"": print(i.upper())?
H I
HI
hi
// question 7 of 10
What is printed? for i in range(4): print(i>1)?
True True False False
False True True True
False False True True
// question 8 of 10
How many iterations in range(3)?
4
3
2
// question 9 of 10
What does == do?
Adds values
Assigns values
Compares values
// question 10 of 10
What is printed? if 3 == 3 and 2 == 2: print(""Yes"")?
Error
Yes
No
Submit Answers →