When would you use np.pad() and what are its key parameters for array padding?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks when to pad a NumPy array with np.pad() and how its main parameters control the result. It tests understanding of per-axis pad widths, fill modes such as constant, edge and reflect, and common padding uses in image and signal processing.