How do you save and load NumPy arrays with .npy and .npz files, and how do they compare with loadtxt/genfromtxt?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how to save and load NumPy arrays with the binary .npy and .npz formats and how they compare with text files read by loadtxt or genfromtxt. It tests what each format preserves, how to handle large arrays and missing values, and when to choose each one.