What is a slice operation in the context of arrays, and how is it useful?
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Other
Overview: Asks what a slice operation on an array is and when it is useful. Tests knowledge of start, stop and step semantics, whether a slice copies data or shares memory in Python, NumPy and Go, and what slicing costs inside loops and recursion.