Skip to content
Sharp

Core Collections · interview question

Which move is the best default when dicts becomes part of this workflow?

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

Correct answer

A. Use dictionaries when the code benefits from named fields or key-based access that reads like the domain.

Why

Use dictionaries when the code benefits from named fields or key-based access that reads like the domain. That is the stronger engineering move because strong answers mention that dicts are powerful but still need clear contracts. 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 →