<
RHD
/>
Home
Blog
Quiz
Resources
About
Contact
Enlist
// guest
▾
Login
Request Account
[ light ]
// general
General Quiz
// question 1 of 10
What is the result of bool("""")?
False
True
Error
// question 2 of 10
What is the output of: {x for x in [1,2,2,3,3]}?
[1, 2, 3]
(1, 2, 2, 3, 3)
{1, 2, 3}
// question 3 of 10
What does statistics.mean([2 4 6]) return?
6
4
2
// question 4 of 10
What does math.factorial(4) return?
8
24
16
// question 5 of 10
What function returns a random integer?
time.sleep()
math.sqrt()
random.randint()
// question 6 of 10
What is the output of len(shelter) if __len__ returns len(self.animals)?
The number of animals in the shelter
The number of attributes in Shelter
The number of methods in Shelter
// question 7 of 10
What is the output of: max([3, 1, 4, 1, 5])?
4
5
1
// question 8 of 10
What does the col_index reset mechanism do in ADFGVX transposition?
Cycles through columns by resetting to 0 after the last column
Sorts the columns alphabetically
Counts the total number of characters
// question 9 of 10
What is printed? def f(x): return x%2 ; print(f(5))?
5
0
1
// question 10 of 10
What is printed? x=1 ; def f(): global x ; x=3 ; f() ; print(x)?
3
1
Error
Submit Answers →