Skip to content
Sharp

Memory · interview question

Which naming or modeling choice is strongest for long-lived objects?

Multiple choiceHardchapter-16-curatedpremiummemorylong-lived-objects
python
cache = []
for row in rows:
    cache.append(row)  # keeps every row alive for the whole process
Choose one answer
Answer and explanation

Correct answer

A. Use names and structures that describe the business fact directly instead of temporary implementation noise.

Why

Clear naming and modeling shorten debugging, review, and onboarding time.

Test yourself on Memory

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

Start free test
All Memory questions →