Skip to content
Sharp

Core Collections · interview question

A teammate submits shaky dicts code. Which review comment is the strongest?

Multiple choiceEasychapter-3-curatedpremiumcore-collectionsdicts
Choose one answer
Answer and explanation

Correct answer

A. Make the rule clearer and easier to explain. Use dictionaries when the code benefits from named fields or key-based access that reads like the domain.

Why

The best review comment anchors the change to readability, correctness, and future maintenance. Blindly passing around giant dictionaries without clarifying their expected keys creates fragile code.

Test yourself on Core Collections

A free test with instant, explained results. No account needed.

Start free test
All Core Collections questions →