What does R's pass-by-value mean, and how do environments give reference semantics?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks what it means that R passes function arguments by value and why a function that edits a vector leaves the caller's object unchanged. It tests copy-on-modify and how environments give reference semantics, the basis of R6 and Reference Classes.