Python: Which statement about Lambda, map, and filter is the strongest interview answer?

Difficulty:

Easy

Questions:

1

Time Limit:

2 minutes

Passing Score:

100%

Question

Which statement about Lambda, map, and filter is the strongest interview answer?

  1. Lambda creates a small anonymous function, while map and filter apply callable-driven transformations across iterables.
  2. Lambda, map, and filter is mostly a naming style choice and has little effect on runtime behavior or design tradeoffs.
  3. Lambda, map, and filter exists mainly to reduce the number of files in a Python project.
  4. 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