<
RHD
/>
Home
Blog
Quiz
Resources
About
Contact
// guest
▾
Login
Request Account
[ light ]
// Control Flow
Control Flow Quiz
// question 1 of 10
What is the result of 5 > 2?
True
False
5
// question 2 of 10
What is the result of 4 != 5?
True
False
4
// question 3 of 10
What is printed? if 4 < 5 and 2 < 3: print(""A"")?
Error
Nothing
A
// question 4 of 10
What is printed? for i in range(4): print(i*i)?
0 1 4 9
1 4 9 16
0 1 2 3
// question 5 of 10
What does range(1,4) generate?
0 1 2 3
1 2 3 4
1 2 3
// question 6 of 10
What does for do?
Stops program
Repeats code for items
Checks conditions
// question 7 of 10
What is printed? if True: print(""A"")?
A
Error
Nothing
// question 8 of 10
What is printed? for i in range(3): pass?
0 1 2
Error
Nothing
// question 9 of 10
What does == do?
Compares values
Assigns values
Adds values
// question 10 of 10
What is printed? x=1 while x<4: print(x) x+=1?
0 1 2 3
1 2 3
1 2 3 4
Submit Answers →