How are element-wise operations performed efficiently in NumPy, and what are Universal Functions (ufuncs)?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks why element-wise operations in NumPy run faster than Python loops and what universal functions are. It tests how ufuncs execute, broadcasting and type casting, the out and where arguments, ufunc methods such as reduce, and common performance and overflow pitfalls.