What is the difference between indexing and slicing in NumPy?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Compare indexing and slicing on NumPy arrays: what each operation returns, how the shape of the result changes, and when the result shares memory with the original. Tests practical understanding of views, copies and advanced indexing for data science work in Python.