<
RHD
/>
Home
Blog
Quiz
Resources
About
Contact
// guest
▾
Login
Request Account
[ light ]
// general
General Quiz
// question 1 of 10
Which brackets create a list?
()
[]
{}
// question 2 of 10
What values does range(3) produce?
0 1 2
1 2 3
0 1 2 3
// question 3 of 10
What gives the current date and time?
time.sleep()
random.randint()
datetime.now()
// question 4 of 10
What is printed? def f(): print(""Hi"") ; print(f())?
Hi then None
Error
Hi
// question 5 of 10
What does math.gcd(8 12) return?
24
4
2
// question 6 of 10
What happens after return?
Loop starts
Code repeats
Function stops
// question 7 of 10
What is the result of ""abc""[::2]?
bc
ac
ab
// question 8 of 10
What is the result of 10 // 3?
3.3
4
3
// question 9 of 10
What is printed? if 10 > 5: print(""Big"") else: print(""Small"")?
Big
Error
Small
// question 10 of 10
What happens with print(unknown_var)?
Nothing
NameError
ValueError
Submit Answers →