Skip to content
Sharp

Build Tools · interview question

Which of the following describes a transitive dependency in a build tool like Maven or Gradle?

Multiple choiceMediumchapter-10-curatedpremiumbuild-toolsdependency-management
Choose one answer
Answer and explanation

Correct answer

B. A dependency that is indirectly required by your project due to another dependency

Why

A transitive dependency is one that is not directly declared in your project but is required by one of your direct dependencies. Build tools like Maven and Gradle automatically resolve and include these to ensure your project compiles successfully.

Test yourself on Build Tools

A free test with instant, explained results. No account needed.

Start free test
All Build Tools questions →