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
Options
- Apyc
- Bpyc_les
- Cpycache
- Dcache
How the community answered
(26 responses)- A12% (3)
- B4% (1)
- C69% (18)
- D15% (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.