Certified Associate in Python Programming (PCAP) — Question 9
Files with the suffix .pyc contain:
Answer options
- A. Python 4 source code
- B. backups
- C. temporary data
- D. semi-compiled Python code
Correct answer: D
Explanation
.pyc files store bytecode that is generated by the Python interpreter after the source code is compiled, making option D the correct choice. Options A, B, and C are incorrect as they do not accurately describe the purpose of .pyc files.