<
RHD
/>
Home
Blog
Quiz
Resources
About
Contact
Enlist
// guest
▾
Login
Request Account
[ light ]
// Modules & Packages
Modules & Packages Quiz
// question 1 of 10
What does random.choice(""abc"") return?
Random character
a
b
// question 2 of 10
What format code gives the month?
%S
%Y
%m
// question 3 of 10
What format code gives the year?
%Y
%d
%m
// question 4 of 10
What does math.ceil(5.1) return?
5
6
5.1
// question 5 of 10
What does statistics.median([1 5 9]) return?
1
5
9
// question 6 of 10
What does math.factorial(5) return?
25
15
120
// question 7 of 10
What does statistics.median([1 2 3]) return?
3
1
2
// question 8 of 10
What does strftime() do?
Adds dates
Deletes dates
Formats dates
// question 9 of 10
What module contains Counter?
collections
statistics
math
// question 10 of 10
What type does random.randint() return?
int
float
str
Submit Answers →