How is vectorization related to broadcasting in NumPy, and why are vectorized operations faster than Python loops?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Explain what vectorized NumPy operations are, why they run faster than Python loops, and how broadcasting lets them work on arrays of different shapes. Tests understanding of NumPy's execution model, its shape rules and the memory cost of large broadcasts.