Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

Which statement about Python's garbage collection is correct?

  1. A It uses reference counting plus a generational collector for reference cycles
  2. B It uses only mark and sweep
  3. C Memory is never reclaimed automatically
  4. D It relies entirely on the operating system
Answer

It uses reference counting plus a generational collector for reference cycles

Reference counting frees objects immediately at zero references. The cycle collector handles cases reference counting cannot, such as parent-child references.

All Python MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as