<
RHD
/>
Home
Blog
Quiz
Resources
About
Contact
// guest
▾
Login
Request Account
[ light ]
// Modules & Packages
Modules & Packages Quiz
// question 1 of 10
What does random.randint(1 3) return?
Random float
Random integer from 1 to 3
Only 1 or 3
// question 2 of 10
What does math.gcd(8 12) return?
2
4
24
// question 3 of 10
What type does random.random() return?
int
bool
float
// question 4 of 10
What gives the current date and time?
random.randint()
datetime.now()
time.sleep()
// question 5 of 10
What type does datetime.now() return?
datetime object
string
integer
// question 6 of 10
What type does random.randint() return?
int
str
float
// question 7 of 10
What does defaultdict provide?
Deleted keys
Sorted dictionaries
Default values
// question 8 of 10
What format code gives the day?
%M
%H
%d
// question 9 of 10
What does statistics.median([1 2 3]) return?
2
3
1
// question 10 of 10
Does randint include both limits?
Yes
Only lower limit
No
Submit Answers →