Explain NumPy broadcasting rules and when they cause unexpected results or shape mismatch errors
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how NumPy decides whether two array shapes can be broadcast together and where the rules cause errors or silent mistakes. Tests shape alignment, stride-0 views, keepdims and the habits that catch wrong-shape bugs in numerical Python code.