Why are NumPy vectorized operations and ufuncs preferred over Python loops, and what are the performance advantages?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks why NumPy vectorized operations and universal functions outperform explicit Python loops for numerical work. Tests understanding of interpreter overhead, memory layout, CPU-level effects, and the memory costs and limits of vectorized code.