Python: Which statement about concurrent.futures is the strongest interview answer?

Difficulty:

Easy

Questions:

1

Time Limit:

2 minutes

Passing Score:

100%

Question

Which statement about concurrent.futures is the strongest interview answer?

  1. concurrent.futures is mostly a naming style choice and has little effect on runtime behavior or design tradeoffs.
  2. concurrent.futures offers a higher-level API for thread or process pools so tasks can be submitted and collected with a common interface.
  3. concurrent.futures exists mainly to reduce the number of files in a Python project.
  4. concurrent.futures matters only for frontend scripting and not for backend or automation code.

Hint

Start with the core rule behind concurrent.futures.

Answer and rationale

Correct answer: B. concurrent.futures offers a higher-level API for thread or process pools so tasks can be submitted and collected with a common interface.

concurrent.futures offers a higher-level API for thread or process pools so tasks can be submitted and collected with a common interface. This is the base concept interviewers commonly test first.

Track: Python