1. Home
  2. Data Science
  3. Python
  4. How does CPython primarily manage memory?

Added 25 Nov 2026

How does CPython primarily manage memory?

  1. Reference counting with a cyclic garbage collector Correct answer
  2. Manual malloc and free
  3. Only mark-and-sweep
  4. No memory management

Correct answer

A. Reference counting with a cyclic garbage collector

MCQSEXAM

Explanation

CPython counts references and uses the gc module to collect reference cycles.

Reference

Asked in: Python Interview Advanced Python

https://docs.python.org/3/library/index.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs