DistillPrep
Python
GenAI
Coming Soon
S
ML System Design
N
NLP
M
Machine Learning
D
Deep Learning
Q
DB & SQL
T
DS & Statistics
O
MLOps
C
Cloud (ML-focused)
Blog
Learn
Practice
Test
Live Engine
Select Topic
Introduction
(12)
Environment Setup
(15)
Datatypes And Keywords
(15)
Type Conversion
(17)
Operators And Expressions
(18)
Control Flow
(18)
Loops
(19)
Linear Data Structures
(20)
Non Linear Data Structures
(20)
Functions
(19)
*args & **kwargs
(18)
Lambda And Comprehensions
(19)
Closures And Decorators
(18)
Iterators And Generators
(18)
Classes And Objects
(18)
OOP Advanced
(20)
Exception Handling
(18)
File Management
(18)
Date And Time
(18)
Regular Expressions
(18)
Multithreading And Multiprocessing
(15)
Advanced Semantics
(15)
Design Patterns
(15)
easy
Introduction
A colleague says Python is "slow because it's interpreted." A Python script you run produces a
__pycache__
folder containing
.pyc
files. What does this reveal about the claim?
A
The claim is correct —
.pyc
files are just cached source text to speed up reading
B
The claim is partially wrong — CPython compiles Python to bytecode first, then the interpreter executes that bytecode
C
The claim is correct —
.pyc
files are temporary files that the OS creates for any text file executed
D
The claim is wrong — Python is fully compiled to native machine code before execution
Previous
Back
Next