Skip to content
Sharp

Memory · interview question

What does a strong engineer do when reasoning through long-lived objects code?

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. Narrate the data shape, the state changes, and the exact rule order step by step.

Why

Interviewers often use simple code to test whether you can reason through execution without bluffing.

Test yourself on Memory

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

Start free test
All Memory questions →