How do you compute a dot product in NumPy, and how does @ differ from element-wise multiplication with *?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how to compute the dot product of two NumPy arrays and how the @ operator differs from element-wise multiplication with *. Tests knowledge of output shapes, broadcasting rules, and where np.matmul and np.dot behave differently for higher-dimensional arrays.