All fields

“Dependency Injection” in Information Technology

214 questions across 12 technologies.

Information Technology

214 questions in 12 technologies

#QuestionTechnologyTopicLevel
1What is dependency injection, and why does it make a codebase easier to test and maintain? .NET › Dependency Injection.NETDependency InjectionIntermediate
2What is dependency injection, and how does ASP.NET Core's built-in DI container support it? .NET › Dependency Injection.NETDependency InjectionBeginner
3What is dependency injection, and how does ASP.NET Core's built-in DI container support it out of the box? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionBeginner
4How does dependency injection integrate with minimal API endpoint handlers versus controller constructors? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionAdvanced
5How does ValidateOnBuild help catch dependency injection configuration errors immediately at application startup rather than at runtime? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionAdvanced
6How is dependency injection set up in MAUI? .NET MAUI › Dependency Injection & Services.NET MAUIDependency Injection & ServicesBeginner
7How is dependency injection set up in MAUI? .NET MAUI › Dependency Injection & Services.NET MAUIDependency Injection & ServicesBeginner
8What is a provider in Angular's dependency injection system? Angular › Dependency Injection Providers & Injection TokensAngularDependency Injection Providers & Injection TokensBeginner
9What is dependency injection in Angular, and how does a component receive a service? Angular › Services & Dependency InjectionAngularServices & Dependency InjectionBeginner
10What is hierarchical dependency injection in Angular, and how does providing a service at the component level differ from providing it at the root level? Angular › Services & Dependency InjectionAngularServices & Dependency InjectionAdvanced
11What is dependency injection, and what problem does it solve compared to a class creating its own dependencies directly? C# › Dependency Injection & IoC PrinciplesC#Dependency Injection & IoC PrinciplesBeginner
12How do you register and resolve a service using ASP.NET Core's built-in dependency injection container? C# › Dependency Injection & IoC PrinciplesC#Dependency Injection & IoC PrinciplesBeginner
13What 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 ContainersPHPDependency Injection & Service ContainersBeginner
14What is dependency injection, and why is it a generally recommended practice for structuring a Flutter application's various services and repositories? Flutter › Dependency Injection in Flutter (GetIt & Service Locator)FlutterDependency Injection in Flutter (GetIt & Service Locator)Beginner
15What is the Inversion of Control (IoC) principle, and how does dependency injection relate to it as one specific technique? C# › Dependency Injection & IoC PrinciplesC#Dependency Injection & IoC PrinciplesIntermediate
16How does the newer inject function differ from using constructor based dependency injection in Angular? Angular › Services & Dependency InjectionAngularServices & Dependency InjectionIntermediate
17What is Dependency Injection (DI) in .NET Core? How is it implemented? .NET Core › Dependency Injection in .NET Core.NET CoreDependency Injection in .NET CoreIntermediate
18How does dependency injection make unit testing significantly easier by letting you substitute a real dependency, such as a live network client, with a fake or mock version during a test? Flutter › Dependency Injection in Flutter (GetIt & Service Locator)FlutterDependency Injection in Flutter (GetIt & Service Locator)Intermediate
19How would you implement the Factory pattern using dependency injection to resolve a specific implementation at runtime based on a parameter, when the standard container can't decide statically? C# › Dependency Injection & IoC PrinciplesC#Dependency Injection & IoC PrinciplesAdvanced
20How does the dependency inversion principle relate to dependency injection, and how does designing around abstractions rather than concrete classes improve long term maintainability? PHP › Dependency Injection & Service ContainersPHPDependency Injection & Service ContainersAdvanced
21What are the tradeoffs of using a global service locator pattern like GetIt compared to using a more structured, compile time safe dependency injection framework such as the riverpod based provider system? Flutter › Dependency Injection in Flutter (GetIt & Service Locator)FlutterDependency Injection in Flutter (GetIt & Service Locator)Advanced
22How can scoped dependency injection help properly manage the specific lifecycle of dependencies that should genuinely only exist for the duration of a particular feature or a specific user session, rather than living for the entire lifetime of the whole application? Flutter › Dependency Injection in Flutter (GetIt & Service Locator)FlutterDependency Injection in Flutter (GetIt & Service Locator)Advanced
23How does the DI container handle constructor injection when a class has multiple constructors? .NET › Dependency Injection.NETDependency InjectionIntermediate
24What is the difference between constructor injection and service location (using IServiceProvider directly to resolve dependencies)? .NET › Dependency Injection.NETDependency InjectionIntermediate
25What is the difference between constructor injection and using IServiceProvider directly to resolve dependencies imperatively (service location)? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionIntermediate
26What is the 'captive dependency' problem, and how does the DI container help catch it? .NET › Dependency Injection.NETDependency InjectionAdvanced
27What is the 'captive dependency' problem, and how does ASP.NET Core's DI container help catch it automatically? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionAdvanced
28What does GetService<T>() return compared to GetRequiredService<T>() when a service isn't registered? .NET › Dependency Injection.NETDependency InjectionBeginner
29What is GetX, and how does it provide state management, dependency injection, and route navigation all together within just one single genuinely combined, unified package? Flutter › State Management with GetXFlutterState Management with GetXBeginner
30How do you replace DependencyService with MAUI dependency injection? .NET MAUI › Migration from Xamarin.Forms.NET MAUIMigration from Xamarin.FormsIntermediate
31How do you replace DependencyService with MAUI dependency injection? .NET MAUI › Migration from Xamarin.Forms.NET MAUIMigration from Xamarin.FormsIntermediate
32How does dependency injection work in Blazor components, and what's the difference between @inject and constructor injection? .NET › Blazor (Server & WebAssembly).NETBlazor (Server & WebAssembly)Intermediate
33How do third-party DI containers like Autofac integrate with ASP.NET Core's built-in DI abstractions? .NET › Dependency Injection.NETDependency InjectionIntermediate
34How does ASP.NET Core's DI container support injecting a logger via ILogger<T>, and how is the generic type parameter used? .NET › Dependency Injection.NETDependency InjectionIntermediate
35How do health checks interact with dependency injection scoping, particularly for checks that need a scoped service like a DbContext? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksIntermediate
36How can closures be used to implement simple dependency injection or callback based customization within a class? PHP › Closures & Anonymous FunctionsPHPClosures & Anonymous FunctionsIntermediate
37What is Symfony's service container, and how does dependency injection work within a typical Symfony application? PHP › Symfony Framework EssentialsPHPSymfony Framework EssentialsIntermediate
38How does GetX's own simple built in dependency injection system, using Get.put and Get.find, let you properly register and later retrieve a shared controller instance from anywhere throughout your entire app? Flutter › State Management with GetXFlutterState Management with GetXIntermediate
39How do you expose native SDK features cleanly through dependency injection? .NET MAUI › Native Interop & Libraries.NET MAUINative Interop & LibrariesAdvanced
40How do you expose native SDK features cleanly through dependency injection? .NET MAUI › Native Interop & Libraries.NET MAUINative Interop & LibrariesAdvanced
41How does the .NET dependency injection container and ASP.NET Core's model binding use reflection and attributes together under the hood? C# › Attributes & ReflectionC#Attributes & ReflectionAdvanced
42How do C# 12 primary constructors interact with dependency injection in ASP.NET Core minimal APIs and controller classes? C# › Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)C#Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)Advanced
43How would you unit test a service that depends on multiple injected interfaces without spinning up the full DI container? .NET › Dependency Injection.NETDependency InjectionAdvanced
44How does dependency injection work identically for both Blazor components and MVC controllers, given they're both hosted in the same ASP.NET Core DI container? ASP.NET Core › Blazor Integration with ASP.NET CoreASP.NET CoreBlazor Integration with ASP.NET CoreAdvanced
45How does dependency injection differ in practice between controllers (constructor injection) and minimal APIs (parameter injection)? ASP.NET Core › Controllers vs Minimal APIsASP.NET CoreControllers vs Minimal APIsAdvanced
46How do third-party DI containers like Autofac integrate with ASP.NET Core's built-in DI abstractions, and why would a team choose one? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionAdvanced
47How would you implement the Dependency Injection pattern manually (without a framework like Spring) using constructor injection, and what testability benefits does this provide? Java › Design Patterns in JavaJavaDesign Patterns in JavaAdvanced
48How does Laravel's service container and service providers work together to manage dependency injection and bootstrap an application's various services? PHP › Laravel Framework EssentialsPHPLaravel Framework EssentialsAdvanced
49How do you properly test a GetX controller in isolation, given its own reliance on GetX's own particular static dependency injection system rather than a considerably more explicit constructor based approach? Flutter › State Management with GetXFlutterState Management with GetXAdvanced
50What is the difference between Singleton, Scoped, and Transient service lifetimes in ASP.NET Core's DI container? .NET › Dependency Injection.NETDependency InjectionIntermediate
51How do you register multiple implementations of the same interface, and how do you resolve all of them together? .NET › Dependency Injection.NETDependency InjectionIntermediate
52How do you register a service using a factory delegate instead of a simple type mapping, when construction requires custom logic? .NET › Dependency Injection.NETDependency InjectionIntermediate
53How does the Generic Host integrate configuration, logging, and dependency injection into a single unified builder? .NET › Generic Host.NETGeneric HostIntermediate
54What is the difference between Singleton, Scoped, and Transient service lifetimes, and how does Scoped specifically map to an HTTP request? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionIntermediate
55How do you register multiple implementations of the same interface and resolve all of them together via IEnumerable<T>? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionIntermediate
56How do you use IServiceScopeFactory to manually create a DI scope outside the normal per-request pipeline, such as inside a background service? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionIntermediate
57How do you register a service using a factory delegate instead of a simple type mapping, when construction requires reading configuration or resolving other services conditionally? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionIntermediate
58How does the Options pattern's IOptions<T>/IOptionsSnapshot<T> relate to and build upon the standard DI container? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionIntermediate
59What does GetService<T>() return compared to GetRequiredService<T>() when a service isn't registered, and which should application code generally prefer? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionIntermediate
60What is the difference between 'exports' and 'opens' in a module-info.java file, and why does reflection-heavy code (like many dependency injection or serialization frameworks) specifically require the latter? Java › Java Platform Module System (JPMS)JavaJava Platform Module System (JPMS)Intermediate
61What is Dependency Injection, and how is it typically implemented in Node.js given the language has no built-in DI container? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsIntermediate
62How would you leverage structural typing to design a flexible 'partial dependency injection' interface for testing, accepting any object with the needed shape rather than requiring a specific concrete class? TypeScript › Structural Typing & Duck TypingTypeScriptStructural Typing & Duck TypingAdvanced
63What are keyed services (introduced in .NET 8), and what problem do they solve compared to multiple unnamed registrations? .NET › Dependency Injection.NETDependency InjectionAdvanced
64How do you use IServiceScopeFactory to manually create and manage a DI scope outside the normal request pipeline? .NET › Dependency Injection.NETDependency InjectionAdvanced
65How does the DI container's disposal behavior work for IDisposable and IAsyncDisposable services across different lifetimes? .NET › Dependency Injection.NETDependency InjectionAdvanced
66What is the Options pattern's relationship to DI, and how does IOptions<T> itself get resolved through the container? .NET › Dependency Injection.NETDependency InjectionAdvanced
67What are keyed services (introduced in .NET 8), and what problem do they solve compared to injecting IEnumerable<T> when you need one specific implementation? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionAdvanced
68How does the DI container's disposal behavior work for IDisposable services registered as Transient, and why can this cause unexpected memory retention? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionAdvanced
69How would you unit test a service or minimal API handler that depends on multiple injected interfaces, without spinning up the full DI container? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionAdvanced
70How would you read custom annotations at runtime using reflection to implement annotation-driven behavior, such as a simple dependency injection or validation framework? Java › AnnotationsJavaAnnotationsAdvanced
71How do you resolve services from a static or platform context where constructor injection isn't possible? .NET MAUI › Dependency Injection & Services.NET MAUIDependency Injection & ServicesAdvanced
72How do you resolve services from a static or platform context where constructor injection isn't possible? .NET MAUI › Dependency Injection & Services.NET MAUIDependency Injection & ServicesAdvanced
73How does constructor injection differ from property (setter) injection, and why is constructor injection generally preferred? C# › Dependency Injection & IoC PrinciplesC#Dependency Injection & IoC PrinciplesIntermediate
74What is an injection token in Angular, and when would you need one instead of just injecting a class? Angular › Dependency Injection Providers & Injection TokensAngularDependency Injection Providers & Injection TokensIntermediate
75What is the difference between registerSingleton, registerLazySingleton, and registerFactory when registering a dependency with GetIt? Flutter › Dependency Injection in Flutter (GetIt & Service Locator)FlutterDependency Injection in Flutter (GetIt & Service Locator)Intermediate
76How do you organize dependency registration in a large Flutter app, using a dedicated setup function or dedicated modules, to keep the overall service locator configuration clean and maintainable as the app grows significantly? Flutter › Dependency Injection in Flutter (GetIt & Service Locator)FlutterDependency Injection in Flutter (GetIt & Service Locator)Intermediate
77What causes a 'captive dependency' bug, and how does ASP.NET Core's DI container detect and prevent it? C# › Dependency Injection & IoC PrinciplesC#Dependency Injection & IoC PrinciplesAdvanced
78How do you correctly and safely resolve a Scoped service from within a Singleton service using IServiceScopeFactory, avoiding the captive dependency problem? C# › Dependency Injection & IoC PrinciplesC#Dependency Injection & IoC PrinciplesAdvanced
79How would you write a custom IServiceProviderFactory or use a third-party container (like Autofac) to enable advanced DI features not supported by the built-in ASP.NET Core container, like property injection or convention-based registration? C# › Dependency Injection & IoC PrinciplesC#Dependency Injection & IoC PrinciplesAdvanced
80What are the DI service lifetimes and when do you use each? .NET MAUI › Dependency Injection & Services.NET MAUIDependency Injection & ServicesBeginner
81What are the DI service lifetimes and when do you use each? .NET MAUI › Dependency Injection & Services.NET MAUIDependency Injection & ServicesBeginner
82What does providedIn root mean when registering an Angular service? Angular › Dependency Injection Providers & Injection TokensAngularDependency Injection Providers & Injection TokensBeginner
83What is a service in Angular and why are services used to hold shared logic? Angular › Services & Dependency InjectionAngularServices & Dependency InjectionBeginner
84How do you inject a view model into a page? .NET MAUI › Dependency Injection & Services.NET MAUIDependency Injection & ServicesIntermediate
85What is the service locator anti-pattern and how do you avoid it in MAUI? .NET MAUI › Dependency Injection & Services.NET MAUIDependency Injection & ServicesIntermediate
86How do you register and use HttpClient with IHttpClientFactory in MAUI? .NET MAUI › Dependency Injection & Services.NET MAUIDependency Injection & ServicesIntermediate
87How do you inject a view model into a page? .NET MAUI › Dependency Injection & Services.NET MAUIDependency Injection & ServicesIntermediate
88What is the service locator anti-pattern and how do you avoid it in MAUI? .NET MAUI › Dependency Injection & Services.NET MAUIDependency Injection & ServicesIntermediate
89How do you register and use HttpClient with IHttpClientFactory in MAUI? .NET MAUI › Dependency Injection & Services.NET MAUIDependency Injection & ServicesIntermediate
90What is the difference between providing a service using useClass and useExisting? Angular › Dependency Injection Providers & Injection TokensAngularDependency Injection Providers & Injection TokensIntermediate
91How would you mock a service during testing to isolate a component from its real dependencies? Angular › Services & Dependency InjectionAngularServices & Dependency InjectionIntermediate
92How do you implement a messaging/event aggregator to decouple view models? .NET MAUI › Dependency Injection & Services.NET MAUIDependency Injection & ServicesAdvanced
93How do you implement a messaging/event aggregator to decouple view models? .NET MAUI › Dependency Injection & Services.NET MAUIDependency Injection & ServicesAdvanced
94How does the useFactory provider option let you create a service with more complex setup logic? Angular › Dependency Injection Providers & Injection TokensAngularDependency Injection Providers & Injection TokensAdvanced
95What is a service container, and what problem does it solve when an application has many interdependent classes? PHP › Dependency Injection & Service ContainersPHPDependency Injection & Service ContainersBeginner
96What is the GetIt package, and how does it function as a service locator, letting different parts of a Flutter app conveniently access shared service instances without needing them to be manually passed down through many widget constructors? Flutter › Dependency Injection in Flutter (GetIt & Service Locator)FlutterDependency Injection in Flutter (GetIt & Service Locator)Beginner
97What is the difference between Singleton, Scoped, and Transient service lifetimes in ASP.NET Core's DI container? C# › Dependency Injection & IoC PrinciplesC#Dependency Injection & IoC PrinciplesIntermediate
98How does autowiring work in a service container, and how does it use type hints to automatically resolve a class's dependencies? PHP › Dependency Injection & Service ContainersPHPDependency Injection & Service ContainersIntermediate
99How do you bind an interface to a specific concrete implementation within a service container, and why is this a common and valuable pattern? PHP › Dependency Injection & Service ContainersPHPDependency Injection & Service ContainersIntermediate
100What is the difference between singleton and transient bindings in a service container, and when should each be used? PHP › Dependency Injection & Service ContainersPHPDependency Injection & Service ContainersIntermediate
101How does the DI container resolve a class with MULTIPLE constructors, and how do you influence which one gets chosen? C# › Dependency Injection & IoC PrinciplesC#Dependency Injection & IoC PrinciplesAdvanced
102How can overuse of a service container, sometimes called the service locator anti pattern, actually harm code quality despite the container itself being a useful tool? PHP › Dependency Injection & Service ContainersPHPDependency Injection & Service ContainersAdvanced
103How do you access the built IHost's service provider after Build() to resolve services outside the normal request/injection flow, such as in Program.cs itself? .NET › Generic Host.NETGeneric HostIntermediate
104How do you properly use the mockito package to create a genuine mock object specifically for testing a class that genuinely depends on an external dependency, such as a network client or a database repository? Flutter › Unit Testing in FlutterFlutterUnit Testing in FlutterIntermediate
105How does the Generic Host's dependency validation (ValidateOnBuild and ValidateScopes) help catch DI configuration errors early? .NET › Generic Host.NETGeneric HostAdvanced
106How do you properly and effectively test Riverpod providers in isolation, including overriding a specific provider's own dependency with a controlled mock implementation specifically for a given unit test? Flutter › Flutter Riverpod Code Generation & ProvidersFlutterFlutter Riverpod Code Generation & ProvidersAdvanced
107How do you unit test a MAUI app's logic? .NET MAUI › Testing & Debugging.NET MAUITesting & DebuggingBeginner
108How do you unit test a MAUI app's logic? .NET MAUI › Testing & Debugging.NET MAUITesting & DebuggingBeginner
109What is Entity Framework Core, and how does it relate to the Repository and Unit of Work patterns? .NET › Entity Framework Core & Data Access.NETEntity Framework Core & Data AccessBeginner
110What is a DbContext, and why should it generally not be shared across multiple concurrent operations? .NET › Entity Framework Core & Data Access.NETEntity Framework Core & Data AccessBeginner
111What is a BackgroundService in ASP.NET Core, and how do you register one to run alongside a web application? ASP.NET Core › Background Tasks & Hosted ServicesASP.NET CoreBackground Tasks & Hosted ServicesBeginner
112What is a helpful first step when debugging an error message shown in the browser console for an Angular app? Angular › Angular DevTools & DebuggingAngularAngular DevTools & DebuggingBeginner
113How do you add a Material dialog to an Angular app? Angular › Angular Material & UI Component LibrariesAngularAngular Material & UI Component LibrariesBeginner
114Why should you avoid storing sensitive information, like an authentication token, directly in an Angular app's local storage? Angular › Angular Security (XSS, Sanitization & CSP)AngularAngular Security (XSS, Sanitization & CSP)Beginner
115How do you make a basic GET request to a server using Angular's HttpClient? Angular › HTTP Client & InterceptorsAngularHTTP Client & InterceptorsBeginner
116What are lifecycle hooks in Angular and why would you use them? Angular › Lifecycle HooksAngularLifecycle HooksBeginner
117Why is the constructor generally not the right place to fetch data or perform complex setup in an Angular component? Angular › Lifecycle HooksAngularLifecycle HooksBeginner
118What is a route guard in Angular, and what is it commonly used for? Angular › Router Guards & ResolversAngularRouter Guards & ResolversBeginner
119How do you bootstrap an Angular application using only standalone components, without a root NgModule? Angular › Standalone ComponentsAngularStandalone ComponentsBeginner
120What is state management in an Angular app? Angular › State ManagementAngularState ManagementBeginner
121What is a common sign that an Angular app's state management approach needs to be reconsidered? Angular › State ManagementAngularState ManagementBeginner
122What is a design pattern in software development, and why are they valuable for PHP developers to learn? PHP › Design Patterns in PHPPHPDesign Patterns in PHPBeginner
123What is the Singleton pattern, and what are its intended use cases along with its commonly cited drawbacks? PHP › Design Patterns in PHPPHPDesign Patterns in PHPBeginner
124What is an interface in PHP, and what purpose does it serve in defining a contract for classes to follow? PHP › Interfaces & Abstract ClassesPHPInterfaces & Abstract ClassesBeginner
125What is the role of a Controller in the MVC pattern, and what responsibilities should typically be kept out of a controller to maintain good separation of concerns? PHP › MVC Architecture in PHPPHPMVC Architecture in PHPBeginner
126Why does a small, simple Flutter app often not actually need a genuinely complex, formal architecture, and at what specific point does adopting a more structured approach typically start to become genuinely worthwhile? Flutter › Flutter App Architecture with Modular Feature FoldersFlutterFlutter App Architecture with Modular Feature FoldersBeginner
127What is Clean Architecture, and what are its three commonly referenced core layers, presentation, domain, and data? Flutter › Flutter Architecture Patterns (MVVM & Clean Architecture)FlutterFlutter Architecture Patterns (MVVM & Clean Architecture)Beginner
128What is the basic folder structure of a typical Flutter plugin project, and how does it separate the shared Dart interface from each individual platform's own specific native implementation? Flutter › Flutter Plugin & Package DevelopmentFlutterFlutter Plugin & Package DevelopmentBeginner
129What is pub.dev, and how does it serve as the genuinely official central package repository specifically for the entire Dart and Flutter ecosystem? Flutter › Publishing Packages on pub.devFlutterPublishing Packages on pub.devBeginner
130How do you properly structure a repository class specifically to encapsulate all of your app's own API calls related to one particular given resource, such as orders or products? Flutter › REST API Integration in FlutterFlutterREST API Integration in FlutterBeginner
131What is the Provider package, and how does it let you properly share a given piece of state across several separate different widgets without needing to manually pass it down through every single intermediate widget constructor? Flutter › State Management with ProviderFlutterState Management with ProviderBeginner
132What makes Riverpod genuinely different from Provider in terms of letting you properly read a given provider's own current value from essentially anywhere, entirely outside of the actual widget tree itself? Flutter › State Management with RiverpodFlutterState Management with RiverpodBeginner
133How do you mock platform/device services for testing? .NET MAUI › Testing & Debugging.NET MAUITesting & DebuggingIntermediate
134How should you organize code in a MAUI project? .NET MAUI › Best Practices & Architecture.NET MAUIBest Practices & ArchitectureIntermediate
135How do you implement a navigation service to keep view models testable? .NET MAUI › Best Practices & Architecture.NET MAUIBest Practices & ArchitectureIntermediate
136How do you share code between a MAUI app and other .NET projects (web/API)? .NET MAUI › Native Interop & Libraries.NET MAUINative Interop & LibrariesIntermediate
137How do you mock platform/device services for testing? .NET MAUI › Testing & Debugging.NET MAUITesting & DebuggingIntermediate
138How should you organize code in a MAUI project? .NET MAUI › Best Practices & Architecture.NET MAUIBest Practices & ArchitectureIntermediate
139How do you implement a navigation service to keep view models testable? .NET MAUI › Best Practices & Architecture.NET MAUIBest Practices & ArchitectureIntermediate
140How do you share code between a MAUI app and other .NET projects (web/API)? .NET MAUI › Native Interop & Libraries.NET MAUINative Interop & LibrariesIntermediate
141How do you create a custom attribute class, and what does AttributeUsage control? C# › Attributes & ReflectionC#Attributes & ReflectionIntermediate
142How does the Repository pattern abstract data access, and what interface typically defines its contract? C# › Design Patterns in C#C#Design Patterns in C#Intermediate
143How do you write a custom middleware component as a reusable class instead of an inline lambda? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineIntermediate
144How do you register and run multiple independent BackgroundServices within the same application? .NET › Background Services.NETBackground ServicesIntermediate
145How do Razor components (.razor files) combine markup and C# code, and what is the @code block? .NET › Blazor (Server & WebAssembly).NETBlazor (Server & WebAssembly)Intermediate
146What are Blazor component lifecycle methods, and what is the purpose of OnInitializedAsync versus OnParametersSetAsync? .NET › Blazor (Server & WebAssembly).NETBlazor (Server & WebAssembly)Intermediate
147How do you pass data from a parent component to a child component in Blazor using [Parameter]? .NET › Blazor (Server & WebAssembly).NETBlazor (Server & WebAssembly)Intermediate
148What is the Options pattern, and why is it preferred over directly injecting IConfiguration into services? .NET › Configuration & Options.NETConfiguration & OptionsIntermediate
149What is the difference between Host.CreateApplicationBuilder and the older Host.CreateDefaultBuilder? .NET › Generic Host.NETGeneric HostIntermediate
150How do you implement a gRPC server method in ASP.NET Core, and how does it integrate with the standard hosting model? .NET › gRPC Services.NETgRPC ServicesIntermediate
151How do you safely access scoped services like a DbContext from within a BackgroundService, which is registered as a singleton? ASP.NET Core › Background Tasks & Hosted ServicesASP.NET CoreBackground Tasks & Hosted ServicesIntermediate
152What is the difference between IHostedService and the BackgroundService convenience base class? ASP.NET Core › Background Tasks & Hosted ServicesASP.NET CoreBackground Tasks & Hosted ServicesIntermediate
153What is the Options pattern, and why is it preferred over injecting IConfiguration directly and reading string keys throughout an application? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternIntermediate
154How does named options support configuring multiple distinct instances of the same options class? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternIntermediate
155How does model binding work differently between controllers (using [FromBody], [FromQuery] attributes) and minimal APIs (using parameter inference)? ASP.NET Core › Controllers vs Minimal APIsASP.NET CoreControllers vs Minimal APIsIntermediate
156How do you pass constructor parameters or configuration to a filter class using [TypeFilter] or [ServiceFilter]? ASP.NET Core › FiltersASP.NET CoreFiltersIntermediate
157What is the difference between a filter attribute applied directly (like [MyFilter]) and using [TypeFilter]/[ServiceFilter] to apply the same filter class? ASP.NET Core › FiltersASP.NET CoreFiltersIntermediate
158How do you generate and use a strongly-typed gRPC client in a .NET application to call a gRPC service? ASP.NET Core › gRPC ServicesASP.NET CoregRPC ServicesIntermediate
159How do you implement a custom health check by implementing IHealthCheck, such as checking database connectivity? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksIntermediate
160How is the Factory pattern commonly applied in Node.js applications, and what problem does it solve? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsIntermediate
161How would you generate a new component, service, or module using Angular CLI commands? Angular › Angular CLI & Project StructureAngularAngular CLI & Project StructureIntermediate
162How do you use the effect function with signals to run code whenever a signal's value changes? Angular › Angular SignalsAngularAngular SignalsIntermediate
163What is the single responsibility principle and how does it apply to writing Angular components and services? Angular › Angular Style Guide & Best PracticesAngularAngular Style Guide & Best PracticesIntermediate
164How would you manually trigger change detection in Angular when needed, such as after code that runs outside Angular's normal tracking? Angular › Change DetectionAngularChange DetectionIntermediate
165How would you create a custom attribute directive in Angular? Angular › DirectivesAngularDirectivesIntermediate
166What is an HTTP interceptor in Angular, and what is it commonly used for? Angular › HTTP Client & InterceptorsAngularHTTP Client & InterceptorsIntermediate
167What is the difference between a Subject, a BehaviorSubject, and a ReplaySubject in RxJS? Angular › RxJS & ObservablesAngularRxJS & ObservablesIntermediate
168How do you use Angular's TestBed to test a component that depends on a service? Angular › Testing with Jasmine & KarmaAngularTesting with Jasmine & KarmaIntermediate
169How would you define a strongly typed interface for data returned from an API, and use it throughout an Angular service? Angular › TypeScript with AngularAngularTypeScript with AngularIntermediate
170What is Middleware in .NET Core? How does the request pipeline work? .NET Core › Middleware & Request Pipeline.NET CoreMiddleware & Request PipelineIntermediate
171What are Configuration and Options pattern in .NET Core? .NET Core › Configuration & Options Pattern.NET CoreConfiguration & Options PatternIntermediate
172What is Entity Framework Core (EF Core)? How is it different from EF6? .NET Core › Entity Framework Core.NET CoreEntity Framework CoreIntermediate
173How does the Strategy pattern let you define a family of interchangeable algorithms and select one at runtime? PHP › Design Patterns in PHPPHPDesign Patterns in PHPIntermediate
174How does the Observer pattern let objects react automatically to events occurring in another object, and where is this pattern commonly used in PHP applications? PHP › Design Patterns in PHPPHPDesign Patterns in PHPIntermediate
175How can a Laravel specific package use a service provider to automatically register its functionality when installed into a host Laravel application? PHP › Package Development & Publishing with ComposerPHPPackage Development & Publishing with ComposerIntermediate
176What are mock objects in PHPUnit, and why are they useful when testing a piece of code that depends on an external service, such as sending an email or calling a third party API? PHP › Unit Testing with PHPUnitPHPUnit Testing with PHPUnitIntermediate
177What is a StreamController, and how does it let you manually create and control your own custom Stream, pushing values into it yourself whenever you choose to? Flutter › Dart Streams & StreamControllersFlutterDart Streams & StreamControllersIntermediate
178How can a feature based folder structure be further organized internally using distinct architectural layers, such as separating presentation, domain, and data code within each individual feature? Flutter › Flutter App Architecture with Modular Feature FoldersFlutterFlutter App Architecture with Modular Feature FoldersIntermediate
179How do use cases, sometimes also called interactors, in Clean Architecture help encapsulate one single specific piece of application business logic, keeping it fully independent of any specific user interface or specific data source implementation? Flutter › Flutter Architecture Patterns (MVVM & Clean Architecture)FlutterFlutter Architecture Patterns (MVVM & Clean Architecture)Intermediate
180How should you properly organize your sqflite database access code using a dedicated database helper class, keeping your genuine SQL related logic properly and cleanly separated from the rest of your app's own business logic? Flutter › SQLite & Local Databases (sqflite)FlutterSQLite & Local Databases (sqflite)Intermediate
181How does MultiProvider let you properly and cleanly combine several genuinely separate individual providers together, avoiding a genuinely awkward, deeply nested pyramid of several separate individually nested Provider widgets? Flutter › State Management with ProviderFlutterState Management with ProviderIntermediate
182How does ProxyProvider let you properly create a given provider whose own value genuinely depends on the current value of a completely separate other already existing provider? Flutter › State Management with ProviderFlutterState Management with ProviderIntermediate
183How do setUp and tearDown let you properly share common test setup and cleanup logic consistently across several genuinely separate related tests within the exact same group? Flutter › Unit Testing in FlutterFlutterUnit Testing in FlutterIntermediate
184Explain the MAUI app startup and the role of MauiProgram. .NET MAUI › Fundamentals & Architecture.NET MAUIFundamentals & ArchitectureAdvanced
185How do you register and consume platform-specific implementations of a shared interface? .NET MAUI › Project Structure & App Startup.NET MAUIProject Structure & App StartupAdvanced
186How do you invoke platform APIs that have no MAUI abstraction, cleanly? .NET MAUI › Platform Integration & Handlers.NET MAUIPlatform Integration & HandlersAdvanced
187How do you structure a large, enterprise MAUI solution? .NET MAUI › Advanced & Enterprise.NET MAUIAdvanced & EnterpriseAdvanced
188What common breaking changes should you expect when migrating to MAUI? .NET MAUI › Migration from Xamarin.Forms.NET MAUIMigration from Xamarin.FormsAdvanced
189Explain the MAUI app startup and the role of MauiProgram. .NET MAUI › Fundamentals & Architecture.NET MAUIFundamentals & ArchitectureAdvanced
190How do you register and consume platform-specific implementations of a shared interface? .NET MAUI › Project Structure & App Startup.NET MAUIProject Structure & App StartupAdvanced
191How do you invoke platform APIs that have no MAUI abstraction, cleanly? .NET MAUI › Platform Integration & Handlers.NET MAUIPlatform Integration & HandlersAdvanced
192How do you structure a large, enterprise MAUI solution? .NET MAUI › Advanced & Enterprise.NET MAUIAdvanced & EnterpriseAdvanced
193What common breaking changes should you expect when migrating to MAUI? .NET MAUI › Migration from Xamarin.Forms.NET MAUIMigration from Xamarin.FormsAdvanced
194How would you implement the Unit of Work pattern alongside the Repository pattern to coordinate multiple repository changes within a single transaction? C# › Design Patterns in C#C#Design Patterns in C#Advanced
195How do you inject scoped (per-request) services into middleware, given that middleware classes are constructed once at app startup? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineAdvanced
196Why is it dangerous to capture and store an HttpContext reference in a singleton-scoped service, and what should you use instead? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineAdvanced
197How does reflection allow inspecting an assembly's types and metadata at runtime, and what are common uses? .NET › Assemblies & NuGet.NETAssemblies & NuGetAdvanced
198How do you safely access scoped services (like a DbContext) from within a BackgroundService, which itself is registered as a singleton? .NET › Background Services.NETBackground ServicesAdvanced
199How does service lifetime (Scoped, Singleton, Transient) have different practical meaning in Blazor Server versus Blazor WebAssembly? .NET › Blazor (Server & WebAssembly).NETBlazor (Server & WebAssembly)Advanced
200What is the difference between IOptions<T>, IOptionsSnapshot<T>, and IOptionsMonitor<T>? .NET › Configuration & Options.NETConfiguration & OptionsAdvanced
201How does named options support configuring multiple distinct instances of the same options type? .NET › Configuration & Options.NETConfiguration & OptionsAdvanced
202How does the Generic Host's DI container differ from a full-featured third-party container in terms of the features it deliberately omits? .NET › Generic Host.NETGeneric HostAdvanced
203How do you test a BackgroundService's business logic without waiting for its actual polling interval, keeping tests fast? ASP.NET Core › Background Tasks & Hosted ServicesASP.NET CoreBackground Tasks & Hosted ServicesAdvanced
204What is the difference between IOptions<T>, IOptionsSnapshot<T>, and IOptionsMonitor<T>, and which is safe to inject into a singleton? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternAdvanced
205What is a Hexagonal Architecture (Ports and Adapters), and what specific benefit does it provide for a Node.js API? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsAdvanced
206How would you combine multiple route guards together to enforce both authentication and a specific user role? Angular › Router Guards & ResolversAngularRouter Guards & ResolversAdvanced
207How would you test an Angular service that makes HTTP requests, without making real network calls during the test? Angular › Testing with Jasmine & KarmaAngularTesting with Jasmine & KarmaAdvanced
208How can the SOLID principles guide the appropriate application of design patterns, and what risks arise from applying patterns without genuinely understanding the underlying problem they solve? PHP › Design Patterns in PHPPHPDesign Patterns in PHPAdvanced
209How does the concept of a Service Layer complement traditional MVC by providing an additional place for complex business logic that spans multiple models? PHP › MVC Architecture in PHPPHPMVC Architecture in PHPAdvanced
210How should a large, complex PHP application evolve its architecture beyond basic MVC to maintain organization and testability as the codebase and team grow significantly? PHP › MVC Architecture in PHPPHPMVC Architecture in PHPAdvanced
211How do traits compare to interfaces combined with composition, in terms of achieving code reuse, and when might one approach be architecturally preferable to the other? PHP › TraitsPHPTraitsAdvanced
212How should you structure Firestore data using subcollections and denormalization to design efficient queries, given that Firestore does not support traditional relational joins across separate collections? Flutter › Cloud Firestore & Firebase StorageFlutterCloud Firestore & Firebase StorageAdvanced
213What are the practical tradeoffs of adopting a genuinely full, strict Clean Architecture approach for a Flutter app, in terms of both the additional required boilerplate code and the genuine long term maintainability benefits it actually provides? Flutter › Flutter Architecture Patterns (MVVM & Clean Architecture)FlutterFlutter Architecture Patterns (MVVM & Clean Architecture)Advanced
214How do you properly test a BLoC or Cubit thoroughly using the bloc_test package, verifying it emits the genuinely correct expected sequence of states in direct response to a given specific series of dispatched events? Flutter › State Management with BLoC & CubitFlutterState Management with BLoC & CubitAdvanced