What happens when a fixed-width integer array overflows, and why does NumPy wrap around silently?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks what happens when a NumPy array with a fixed-width integer dtype such as int8 or uint8 overflows, and why NumPy does not raise an error. Tests two's complement wraparound, how result dtypes are chosen, the performance reasons behind silent overflow, and safe ways to avoid it.