What is a RangeIndex and why is it the default index for a new DataFrame?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks what a pandas RangeIndex is and why a new DataFrame gets one by default. Tests its memory use, how label-based and position-based selection relate on a default index, and which operations replace or restore it.