W3
Teacher
Explore
Browse by field
Artificial Intelligence
Accounting & Finance
Information Technology
Show all fields
Interview Q&A
All Interview Questions
Beginner
Intermediate
Advanced
Practice
MCQs
Quizzes
Mock Interviews
About
Light
Dark
Auto
Sign in
Get Started
Search interview questions
Search
33 questions for “Dependencies”
Found in 1 field. Select a question to see its full answer.
Information Technology
33 questions in 14 technologies
#
Question
Technology
Topic
Level
1
What is dependency injection, and what problem does it solve compared to a class creating its own
dependencies
directly?
C# › Dependency Injection & IoC Principles
C#
Dependency Injection & IoC Principles
Beginner
2
What is dependency injection, and how does it improve the design of PHP applications compared to creating
dependencies
directly inside a class?
PHP › Dependency Injection & Service Containers
PHP
Dependency Injection & Service Containers
Beginner
3
How does pyproject.toml serve as the modern standard for defining a Python package's build configuration and
dependencies
?
Python › Modules & Packaging
Python
Modules & Packaging
Intermediate
4
What is the difference between constructor injection and service location (using IServiceProvider directly to resolve
dependencies
)?
.NET › Dependency Injection
.NET
Dependency Injection
Intermediate
5
What is the difference between constructor injection and using IServiceProvider directly to resolve
dependencies
imperatively (service location)?
ASP.NET Core › Dependency Injection
ASP.NET Core
Dependency Injection
Intermediate
6
How do you distinguish between transient errors (worth retrying) and permanent errors (should fail immediately) when designing error handling for calls to external
dependencies
?
ASP.NET Core › Error Handling
ASP.NET Core
Error Handling
Intermediate
7
How do you add pre-built health checks for common external
dependencies
like SQL Server, Redis, or a URL endpoint, using the community AspNetCore.Diagnostics.HealthChecks packages?
ASP.NET Core › Health Checks
ASP.NET Core
Health Checks
Intermediate
8
What is the difference between Maven's <
dependencies
> scope values (compile, provided, runtime, test) and how do they affect what's included in the final packaged artifact?
Java › Build Tools: Maven & Gradle
Java
Build Tools: Maven & Gradle
Intermediate
9
How do the requires and exports directives in a module-info.java file work together to define a module's
dependencies
and public API surface?
Java › Java Platform Module System (JPMS)
Java
Java Platform Module System (JPMS)
Intermediate
10
How would you mock a service during testing to isolate a component from its real
dependencies
?
Angular › Services & Dependency Injection
Angular
Services & Dependency Injection
Intermediate
Show all 33 questions in Information Technology