What do do.call, match.arg, and on.exit do in R?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks what the R functions do.call, match.arg and on.exit do and when you would reach for each while writing a function. Tests how well you know R's tools for building calls from lists, checking enumerated string arguments, and cleanup that must run when a function exits.