Skip to content
CodeKruPro

When is an object freed in CPython?

QuizMediumPython onlyAsked in: Accenture, TCS

Which statements about CPython 3.12 are true? Pick all that apply.

  • An object is freed as soon as its reference count reaches zero
  • del x always frees the object x referred to
  • Two objects that refer only to each other are freed by the cyclic garbage collector
  • The garbage collector also closes browsers that were never quit

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in