Select an answer and submit each question. Some questions have more than one correct answer; those use checkboxes and require every correct option—and no incorrect option—to be selected. Progress is stored in your browser.
Why is a mutable default argument usually a defect?
The same default object is reused by calls that omit that argument. Use None plus initialization inside the function, or an appropriate immutable default.
Which statements about equality and hashing are correct?
Hash collisions are allowed, so equal hashes do not prove equality. Mutating a stored key's hash-relevant state can make its entry unreachable through normal lookup.
Generators provide lazy iteration and can reduce peak memory, but they add execution overhead and retain their suspended frame until exhausted or closed.
Which controls help a high-concurrency client remain production-safe?
Concurrency without limits can overwhelm connection pools, memory, or downstream services. Retries need classification, budgets, backoff, and idempotency.
A dictionary lookup is commonly described as O(1). What is the most precise interview answer?
Python dictionaries are hash tables. Average lookup is constant time, while pathological collisions can degrade performance.
Interpretation
18–21 correct: strong recall; focus on communication, production stories, and system design.
14–17 correct: interview-ready foundation; revisit explanations for missed topics.
10–13 correct: review the advanced guide and repeat the quiz after coding examples.
Below 10: work through the systematic learning path before emphasizing senior scenarios.
A score measures recall, not seniority. Senior performance also requires sound trade-offs, operational judgment, and clear evidence from real engineering work.