All challenges
Multiple ChoiceIntermediate 30s

Small Integer Cache

Choose the best answer for: integer interning
Options
  1. 1All integers are cached and shared across the interpreter
  2. 2Integers -5 to 256 are cached (singletons in CPython)
  3. 3No integers are cached and each is a separate object
  4. 4Only 0 is cached and all other small integers are not

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle