Question
Which statement about Lambda, map, and filter is the strongest interview answer?
- Lambda creates a small anonymous function, while map and filter apply callable-driven transformations across iterables.
- Lambda, map, and filter is mostly a naming style choice and has little effect on runtime behavior or design tradeoffs.
- Lambda, map, and filter exists mainly to reduce the number of files in a Python project.
- Lambda, map, and filter matters only for frontend scripting and not for backend or automation code.
Hint
Start with the core rule behind Lambda, map, and filter.
Answer and rationale
Correct answer: A. Lambda creates a small anonymous function, while map and filter apply callable-driven transformations across iterables.
Lambda creates a small anonymous function, while map and filter apply callable-driven transformations across iterables. This is the base concept interviewers commonly test first.
Track: Python