<
RHD
/>
Home
Blog
Quiz
Resources
About
Contact
// guest
▾
Login
Request Account
[ light ]
// Projects
Projects Quiz
// question 1 of 10
What is the output of: bool("")?
None
False
True
// question 2 of 10
What does time.perf_counter() measure?
High-resolution elapsed time
The current time of day
The CPU temperature
// question 3 of 10
What does datetime.date.today() return?
The current date as a date object
A formatted string
The current date and time
// question 4 of 10
What does if not my_dict evaluate to when my_dict is empty?
True
It raises an error
False
// question 5 of 10
What does int("42") return?
The integer 42
The string "42"
A float 42.0
// question 6 of 10
What is the correct way to sort a list in place?
sorted_list = my_list.sort()
my_list = my_list.sort()
my_list.sort()
// question 7 of 10
What does defaultdict(list) do when a missing key is accessed?
Returns None
Creates the key with an empty list as value
Raises a KeyError
// 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 does split(';') do on a string?
Splits at every character
Removes all semicolons
Splits the string at every semicolon
// question 10 of 10
What is the correct way to check if a key exists in a dictionary?
if key in my_dict
if key == my_dict
if my_dict.has(key)
Submit Answers →