nerdexam
Python_Institute

PCEP-30-02 · Question #155

The folder created by Python used to store pyc les is named:

The correct answer is C. __pycache__. Python automatically creates a folder called __pycache__ to store compiled bytecode files (.pyc files), which speeds up subsequent imports by skipping recompilation. Option A (__pyc__) is wrong because it omits "cache" entirely, missing the folder's purpose. Option B…

Question

The folder created by Python used to store pyc les is named:

Options

  • Apyc
  • Bpyc_les
  • Cpycache
  • Dcache

How the community answered

(26 responses)
  • A
    12% (3)
  • B
    4% (1)
  • C
    69% (18)
  • D
    15% (4)

Explanation

Python automatically creates a folder called __pycache__ to store compiled bytecode files (.pyc files), which speeds up subsequent imports by skipping recompilation. Option A (__pyc__) is wrong because it omits "cache" entirely, missing the folder's purpose. Option B (__pyc_les__) is a nonsensical corruption of the name. Option D (__cache__) is wrong because Python's naming convention requires the py prefix to signal its language-specific role.

Memory tip: Think of it as "Python cache" compressed - __py + cache__ = __pycache__. The double underscores (dunders) signal it's a special Python-managed directory, just like __init__ or __main__.

Community Discussion

No community discussion yet for this question.

Full PCEP-30-02 Practice