All fields

“Async” in Information Technology

220 questions across 17 technologies.

Information Technology

220 questions in 17 technologies

#QuestionTechnologyTopicLevel
1How do you loop over an async iterable? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsBeginner
2What is an async generator, and how does it differ from a regular generator? Python › Async Generators & Async Context ManagersPythonAsync Generators & Async Context ManagersBeginner
3How do you consume an async generator using 'async for'? Python › Async Generators & Async Context ManagersPythonAsync Generators & Async Context ManagersBeginner
4What is an async context manager, and which two dunder methods does it require? Python › Async Generators & Async Context ManagersPythonAsync Generators & Async Context ManagersBeginner
5What is the basic pattern for running an async function using asyncio.run()? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Beginner
6What is the purpose of the 'node:timers/promises' module, and how does it simplify working with delays in async code? Node.js › Async PatternsNode.jsAsync PatternsBeginner
7How do you run multiple coroutines concurrently using asyncio.gather()? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Intermediate
8What are async streams in C#, and how does IAsyncEnumerable<T> differ from a regular IEnumerable<T> for handling large or slow data sources? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingIntermediate
9What is the difference between running async operations sequentially with multiple awaits versus concurrently with Promise.all()? Node.js › Async PatternsNode.jsAsync PatternsIntermediate
10Why might Promise.all() be the wrong tool when consuming many async iterators? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsAdvanced
11How do you handle backpressure when an async generator produces items faster than the consumer can process them? Python › Async Generators & Async Context ManagersPythonAsync Generators & Async Context ManagersAdvanced
12How do async generators interact with asyncio.Queue to implement a producer-consumer pattern across separate tasks? Python › Async Generators & Async Context ManagersPythonAsync Generators & Async Context ManagersAdvanced
13How would you implement a 'fan-out, fan-in' pattern using multiple async generators consumed concurrently and merged into one stream? Python › Async Generators & Async Context ManagersPythonAsync Generators & Async Context ManagersAdvanced
14How does asyncio's event loop schedule and switch between multiple coroutines, and what makes this cooperative rather than preemptive? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Advanced
15How do you safely run a blocking, synchronous function from within an asyncio coroutine without freezing the event loop? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Advanced
16What do async and await do? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingBeginner
17What is an async iterator? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsBeginner
18What do the 'async' and 'await' keywords do, and how do they relate to each other? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingBeginner
19What is the difference between the async and await keywords in C#, and how do they work together? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingBeginner
20What does asynchronous programming mean in PHP, and why is it different from PHP's traditional synchronous execution model? PHP › Asynchronous PHP (ReactPHP & Swoole)PHPAsynchronous PHP (ReactPHP & Swoole)Beginner
21What is ReactPHP and how does its event loop enable non blocking, asynchronous behavior in standard PHP? PHP › Asynchronous PHP (ReactPHP & Swoole)PHPAsynchronous PHP (ReactPHP & Swoole)Beginner
22How do the async and await keywords let you write asynchronous code in Dart that reads and looks like simple, straightforward sequential code? Flutter › Dart Asynchronous Programming (Future & async/await)FlutterDart Asynchronous Programming (Future & async/await)Beginner
23How do you run multiple async operations concurrently? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingIntermediate
24How do you write an async generator function? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsIntermediate
25What does return() do on an async iterator? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsIntermediate
26How do you run multiple asynchronous operations concurrently and wait for all of them using Task.WhenAll? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingIntermediate
27How do you write an async context manager more concisely using @contextlib.asynccontextmanager? Python › Async Generators & Async Context ManagersPythonAsync Generators & Async Context ManagersIntermediate
28How does an async generator interact with try/finally for guaranteed cleanup, similar to regular generators? Python › Async Generators & Async Context ManagersPythonAsync Generators & Async Context ManagersIntermediate
29How do you build an async generator pipeline, chaining one async generator's output into another, like a synchronous generator pipeline? Python › Async Generators & Async Context ManagersPythonAsync Generators & Async Context ManagersIntermediate
30How do async comprehensions work, combining 'async for' directly inside a list/set/dict comprehension? Python › Async Generators & Async Context ManagersPythonAsync Generators & Async Context ManagersIntermediate
31How does async/await relate to Promises under the hood, and what does 'await' actually do to program execution? Node.js › Async PatternsNode.jsAsync PatternsIntermediate
32How do you implement a retry-with-exponential-backoff pattern for a flaky async operation in Node.js? Node.js › Async PatternsNode.jsAsync PatternsIntermediate
33How do coroutines in Swoole let you write asynchronous code using a familiar, synchronous looking coding style? PHP › Asynchronous PHP (ReactPHP & Swoole)PHPAsynchronous PHP (ReactPHP & Swoole)Intermediate
34What types of real world applications are best suited for asynchronous PHP frameworks like ReactPHP or Swoole, compared to traditional synchronous PHP applications? PHP › Asynchronous PHP (ReactPHP & Swoole)PHPAsynchronous PHP (ReactPHP & Swoole)Intermediate
35How do you properly handle errors that occur during an asynchronous operation using a try catch block combined with async and await? Flutter › Dart Asynchronous Programming (Future & async/await)FlutterDart Asynchronous Programming (Future & async/await)Intermediate
36How does Future.wait let you run several independent asynchronous operations concurrently and wait for all of them to complete together, rather than awaiting each one sequentially one after another? Flutter › Dart Asynchronous Programming (Future & async/await)FlutterDart Asynchronous Programming (Future & async/await)Intermediate
37What is the difference between microtasks and the event queue in Dart's event loop, and how does this affect the precise order in which asynchronous code actually executes? Flutter › Dart Asynchronous Programming (Future & async/await)FlutterDart Asynchronous Programming (Future & async/await)Intermediate
38How do you convert a Node.js Readable stream into an async iterable? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsAdvanced
39How do you run multiple async iterators concurrently and merge their results? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsAdvanced
40How do you add a timeout to an async iterator's next() call? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsAdvanced
41How does CancellationToken propagate cancellation requests through a chain of async method calls? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingAdvanced
42How does the compiler transform an async method into a state machine, and why does this matter for understanding performance? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingAdvanced
43How do IAsyncEnumerable<T> and 'await foreach' let you consume an asynchronous stream of values one at a time? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingAdvanced
44How do you correctly implement a producer-consumer pattern using System.Threading.Channels for asynchronous data pipelines? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingAdvanced
45How would you implement a custom async iterator class from scratch, without using an async generator function? Python › Async Generators & Async Context ManagersPythonAsync Generators & Async Context ManagersAdvanced
46How would you implement timeout handling for an async generator's individual yields, so a stalled source doesn't hang the consumer forever? Python › Async Generators & Async Context ManagersPythonAsync Generators & Async Context ManagersAdvanced
47How would you implement an async context manager that also supports being used as a decorator, similar to contextlib.contextmanager's decorator support? Python › Async Generators & Async Context ManagersPythonAsync Generators & Async Context ManagersAdvanced
48How do you properly propagate cancellation into an async generator when the consuming task is cancelled mid-iteration? Python › Async Generators & Async Context ManagersPythonAsync Generators & Async Context ManagersAdvanced
49How do you correctly test async generators and async context managers using pytest and pytest-asyncio? Python › Async Generators & Async Context ManagersPythonAsync Generators & Async Context ManagersAdvanced
50How do you correctly cancel a running asyncio task, and how should the task itself handle the resulting CancelledError? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Advanced
51How would you use concurrent.futures.ProcessPoolExecutor together with asyncio to run CPU-bound work without blocking the event loop? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Advanced
52How would you design a robust worker pool that handles both graceful shutdown (finishing in-flight work) and immediate cancellation (dropping everything), using asyncio? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Advanced
53How does async/await work under the hood in C#, and what specifically happens when execution reaches an 'await'? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingAdvanced
54What is an async generator, and how does 'for await...of' let you consume asynchronously produced data? Node.js › Async PatternsNode.jsAsync PatternsAdvanced
55What is a common pitfall when using async/await inside Array.prototype.forEach(), and how do you fix it? Node.js › Async PatternsNode.jsAsync PatternsAdvanced
56How would you implement a concurrency-limited task queue in Node.js to process many async tasks without overwhelming a downstream resource? Node.js › Async PatternsNode.jsAsync PatternsAdvanced
57What is 'fire-and-forget' async code, and why is it generally discouraged in production Node.js applications? Node.js › Async PatternsNode.jsAsync PatternsAdvanced
58What common pitfalls should developers be aware of when writing asynchronous PHP code with Swoole, particularly around shared state and blocking calls? PHP › Asynchronous PHP (ReactPHP & Swoole)PHPAsynchronous PHP (ReactPHP & Swoole)Advanced
59How should a team decide whether to adopt an asynchronous PHP framework like Swoole for a new project, versus sticking with a traditional synchronous framework like Laravel running on PHP-FPM? PHP › Asynchronous PHP (ReactPHP & Swoole)PHPAsynchronous PHP (ReactPHP & Swoole)Advanced
60How can you properly cancel an in progress asynchronous operation in Dart, such as a network request, when it is no longer actually needed, for example because the user has already navigated away from that specific screen? Flutter › Dart Asynchronous Programming (Future & async/await)FlutterDart Asynchronous Programming (Future & async/await)Advanced
61What are common async/await pitfalls in MAUI? .NET MAUI › Concurrency & Threading.NET MAUIConcurrency & ThreadingIntermediate
62What are common async/await pitfalls in MAUI? .NET MAUI › Concurrency & Threading.NET MAUIConcurrency & ThreadingIntermediate
63How do you catch errors from a Promise chain versus async/await? JavaScript › Error HandlingJavaScriptError HandlingIntermediate
64How do you efficiently copy data between two streams using Stream.CopyToAsync(), and why is this preferred over a manual byte-by-byte loop? C# › File I/O & StreamsC#File I/O & StreamsIntermediate
65What is the difference between SaveChanges() and SaveChangesAsync(), and why does it matter for a web application's scalability? .NET › Entity Framework Core & Data Access.NETEntity Framework Core & Data AccessIntermediate
66How do you implement server-streaming gRPC using C#'s IAsyncEnumerable<T> or IServerStreamWriter<T>? .NET › gRPC Services.NETgRPC ServicesIntermediate
67Why doesn't Express automatically catch errors thrown inside an async route handler in versions prior to Express 5, and how do you work around this? Node.js › Error HandlingNode.jsError HandlingIntermediate
68What is the try/catch/finally pattern's 'finally' block used for, and how does it behave with async/await? Node.js › Error HandlingNode.jsError HandlingIntermediate
69How do you properly handle loading, error, and data states when working with a FutureProvider or a StreamProvider in Riverpod, using the resulting AsyncValue's own convenient when method? Flutter › State Management with RiverpodFlutterState Management with RiverpodIntermediate
70How should you properly and correctly avoid calling setState after a StatefulWidget's own associated State object has genuinely already been disposed of, such as after an asynchronous operation genuinely completes following a user having already navigated away? Flutter › State Management with setStateFlutterState Management with setStateIntermediate
71How do you write an effective test for asynchronous code? JavaScript › Debugging, Testing & ToolingJavaScriptDebugging, Testing & ToolingAdvanced
72How does async/await map onto the microtask queue under the hood? JavaScript › Event Loop & ConcurrencyJavaScriptEvent Loop & ConcurrencyAdvanced
73How were generators historically used to write asynchronous code before async/await existed? JavaScript › Iterators & GeneratorsJavaScriptIterators & GeneratorsAdvanced
74How would you implement a custom EventHandler using async/await, avoiding the common 'async void' anti-pattern while still matching the standard EventHandler delegate signature? C# › Delegates, Events & LambdasC#Delegates, Events & LambdasAdvanced
75How does exception handling interact with async/await, and how are exceptions from an async Task propagated to the awaiting caller? C# › Exception HandlingC#Exception HandlingAdvanced
76How do you correctly implement async, cancellable file I/O using CancellationToken with FileStream operations? C# › File I/O & StreamsC#File I/O & StreamsAdvanced
77How would you combine yield return with async/await to build an IAsyncEnumerable<T>-producing async iterator method? C# › Iterators & yield returnC#Iterators & yield returnAdvanced
78How would you implement a coroutine-style generator-based pipeline (the classic pre-async/await pattern) using multiple chained 'send()'-driven generators? Python › Comprehensions & GeneratorsPythonComprehensions & GeneratorsAdvanced
79How do you write a decorator that works correctly on an async function (coroutine), given that a regular decorator's wrapper would break 'await' usage? Python › DecoratorsPythonDecoratorsAdvanced
80How would you implement asynchronous file I/O using aiofiles alongside an async context manager, to avoid blocking the event loop during file operations? Python › File I/O & Context ManagersPythonFile I/O & Context ManagersAdvanced
81How does async/await performance compare to synchronous code, and what overhead does the async state machine introduce? .NET › Diagnostics & Performance.NETDiagnostics & PerformanceAdvanced
82How does an IAsyncActionFilter differ from the synchronous IActionFilter, and why is the async version generally preferred for filters doing I/O work? ASP.NET Core › FiltersASP.NET CoreFiltersAdvanced
83What is the AsyncLocalStorage API, and what problem does it solve for tracking context across asynchronous calls? Node.js › Advanced Node.jsNode.jsAdvanced Node.jsAdvanced
84How do you write custom Express middleware that needs to perform asynchronous work, like checking a value against a database, before calling next()? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareAdvanced
85How can you properly and safely use a BuildContext across an asynchronous gap, such as directly after an await statement, without genuinely risking using a context that has since actually genuinely become invalid because its own underlying widget was already disposed of in the meantime? Flutter › Flutter Widget Tree, Element Tree & BuildContextFlutterFlutter Widget Tree, Element Tree & BuildContextAdvanced
86What does the GetOrCreateAsync pattern accomplish when working with IMemoryCache, and why is it preferred over separate TryGetValue/Set calls? .NET › Caching (In-Memory, Distributed & Redis).NETCaching (In-Memory, Distributed & Redis)Beginner
87What does calling host.Run() versus host.RunAsync() do, and when would you use each? .NET › Generic Host.NETGeneric HostBeginner
88How should exceptions be handled inside a BackgroundService's ExecuteAsync loop to prevent the entire service from crashing silently? .NET › Background Services.NETBackground ServicesIntermediate
89What is the significance of the order of AddHostedService registrations relative to StartAsync execution, and can you control it? .NET › Background Services.NETBackground ServicesIntermediate
90What are Blazor component lifecycle methods, and what is the purpose of OnInitializedAsync versus OnParametersSetAsync? .NET › Blazor (Server & WebAssembly).NETBlazor (Server & WebAssembly)Intermediate
91What is the difference between IAuthenticationService's SignInAsync/SignOutAsync methods and simply checking if a user 'is authenticated'? ASP.NET Core › AuthenticationASP.NET CoreAuthenticationIntermediate
92How would you make an asynchronous, non-blocking HTTP request using HttpClient's sendAsync() method, and how does the returned CompletableFuture integrate with the rest of an asynchronous pipeline? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientIntermediate
93What is the difference between synchronous and asynchronous versions of the same core Node.js API, using fs.readFile vs fs.readFileSync as an example, and when is the synchronous version actually appropriate? Node.js › Event Loop & Non-blocking IONode.jsEvent Loop & Non-blocking IOIntermediate
94How do middleware, such as Redux Thunk, help handle asynchronous operations like API calls in Redux? React › State Management Libraries (Redux, Zustand & Recoil)ReactState Management Libraries (Redux, Zustand & Recoil)Intermediate
95How does the async pipe simplify working with observables directly in an Angular template? Angular › Pipes (Built-in & Custom)AngularPipes (Built-in & Custom)Intermediate
96How would you test a server component that fetches data asynchronously? Next.js › Testing Next.js ApplicationsNext.jsTesting Next.js ApplicationsIntermediate
97How would you write a mapped type that converts every method on an interface into a Promise-returning async version, for a mock or proxy implementation? TypeScript › Mapped TypesTypeScriptMapped TypesAdvanced
98How does control-flow-based narrowing interact with strictNullChecks across an async function's awaited boundaries? TypeScript › Nullability: strictNullChecks, Optional Chaining & Nullish CoalescingTypeScriptNullability: strictNullChecks, Optional Chaining & Nullish CoalescingAdvanced
99How does the middleware pipeline interact with asynchronous streaming responses, and what precautions are needed? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineAdvanced
100What is IHostedLifecycleService, and how does it provide more granular hooks than IHostedService's StartAsync/StopAsync? .NET › Background Services.NETBackground ServicesAdvanced
101How does the DI container's disposal behavior work for IDisposable and IAsyncDisposable services across different lifetimes? .NET › Dependency Injection.NETDependency InjectionAdvanced
102How does graceful shutdown work for a BackgroundService, and how should ExecuteAsync respect the CancellationToken? ASP.NET Core › Background Tasks & Hosted ServicesASP.NET CoreBackground Tasks & Hosted ServicesAdvanced
103How do CompletableFuture's composition methods (thenApply, thenCompose, thenCombine) enable building asynchronous pipelines, and what's the difference between thenApply and thenCompose? Java › Concurrency & ThreadsJavaConcurrency & ThreadsAdvanced
104How would you implement asynchronous file I/O using AsynchronousFileChannel, and how does this differ from both the classic blocking java.io model and NIO's Selector-based non-blocking channels? Java › I/O & NIOJavaI/O & NIOAdvanced
105What is the role of Span<T> and Memory<T> in .NET, and why can't Span<T> be used inside an async method? C# › Arrays, Span<T> & Memory<T>C#Arrays, Span<T> & Memory<T>Advanced
106How would you use async_hooks (the lower-level predecessor to AsyncLocalStorage) to trace the lifecycle of asynchronous resources in Node.js? Node.js › Event Loop & Non-blocking IONode.jsEvent Loop & Non-blocking IOAdvanced
107How would you create a custom asynchronous validator that checks something against a server, such as whether a username is already taken? Angular › FormsAngularFormsAdvanced
108How do NgRx Effects let you handle asynchronous operations, like an API call, in response to a dispatched action? Angular › NgRx State ManagementAngularNgRx State ManagementAdvanced
109How would you reduce Cumulative Layout Shift on a page that loads ads, images, and web fonts asynchronously? Next.js › Web Vitals & Performance MonitoringNext.jsWeb Vitals & Performance MonitoringAdvanced
110How do you decide between synchronous commit mode and asynchronous commit mode for a specific replica in an Always On Availability Group? SQL Server › Always On Availability GroupsSQL ServerAlways On Availability GroupsAdvanced
111What are the tradeoffs between using synchronous and asynchronous client libraries when connecting an application to Redis? Redis › Connection Pooling & Client LibrariesRedisConnection Pooling & Client LibrariesAdvanced
112How should an application handle email sending failures gracefully, and why is sending emails asynchronously through a queue often preferred over sending them directly during a web request? PHP › Email Sending in PHP (PHPMailer & SMTP)PHPEmail Sending in PHP (PHPMailer & SMTP)Advanced
113How can you properly implement debounced asynchronous validation for a specific field, such as checking username availability against a server, without triggering a genuinely brand new separate network request on essentially every single individual keystroke a user actually types? Flutter › Forms & Input Validation in FlutterFlutterForms & Input Validation in FlutterAdvanced
114What is a callback function in Node.js, and what is 'callback hell'? Node.js › Async PatternsNode.jsAsync PatternsBeginner
115What is a Promise in JavaScript, and what are its three possible states? Node.js › Async PatternsNode.jsAsync PatternsBeginner
116How do you convert a Node.js callback-based function into a Promise-based one manually, without using util.promisify()? Node.js › Async PatternsNode.jsAsync PatternsBeginner
117What is the difference between Promise.all(), Promise.allSettled(), Promise.race(), and Promise.any()? Node.js › Async PatternsNode.jsAsync PatternsIntermediate
118What is util.promisify(), and when would you still need it in modern Node.js? Node.js › Async PatternsNode.jsAsync PatternsIntermediate
119What is the difference between Task and Task<T>? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingBeginner
120What is the fundamental difference between concurrency and parallelism, and how does this map to Python's threading versus multiprocessing modules? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Beginner
121How do you create and run a basic thread using the threading module? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Beginner
122What is a Future in Dart, and how does it represent a value that will not actually be available until some point later in time? Flutter › Dart Asynchronous Programming (Future & async/await)FlutterDart Asynchronous Programming (Future & async/await)Beginner
123What does ConfigureAwait(false) do? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingIntermediate
124What is the ReadableStream API used for? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsIntermediate
125Why does calling .Result or .Wait() on a Task risk causing a deadlock, particularly in ASP.NET (non-Core) or UI applications? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingIntermediate
126What does ConfigureAwait(false) do, and when is it appropriate to use? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingIntermediate
127How does the Global Interpreter Lock (GIL) affect CPU-bound versus I/O-bound multithreaded programs differently? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Intermediate
128How do you protect shared mutable state from race conditions when using multiple threads, using threading.Lock? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Intermediate
129How does multiprocessing.Pool let you parallelize a CPU-bound function across multiple worker processes? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Intermediate
130What is a race condition, and how does it differ from a deadlock? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Intermediate
131What is the difference between micro tasks and macro tasks in Node.js's event loop, and how does this affect Promise callback ordering? Node.js › Async PatternsNode.jsAsync PatternsIntermediate
132What is Swoole, and how does it extend PHP with built in support for coroutines and high performance networking? PHP › Asynchronous PHP (ReactPHP & Swoole)PHPAsynchronous PHP (ReactPHP & Swoole)Intermediate
133Why can .Result or .Wait() deadlock, and what's the fix? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingAdvanced
134How do you design for scalability and avoid thread-pool starvation? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingAdvanced
135What's the difference between piping streams with pipeThrough() and pipeTo()? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsAdvanced
136What is ValueTask<T> and when should you use it instead of Task<T> for performance? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingAdvanced
137How do you share data between processes using multiprocessing, given that separate processes don't share memory the way threads do? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Advanced
138How would you implement a producer-consumer pattern combining a thread-safe queue.Queue with multiple worker threads? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Advanced
139What is the difference between Task and Thread in C#, and when would you deliberately choose one over the other? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingAdvanced
140What is ValueTask<T> in C#, and when does it actually provide a meaningful performance benefit over Task<T>? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingAdvanced
141What is the difference between an unhandled promise rejection and an uncaught exception in Node.js, and how does Node handle each by default? Node.js › Async PatternsNode.jsAsync PatternsAdvanced
142How can improper use of unawaited Futures introduce subtle bugs, such as a race condition or an unhandled error, into a Flutter application, and how does the unawaited function help make this deliberate choice explicit? Flutter › Dart Asynchronous Programming (Future & async/await)FlutterDart Asynchronous Programming (Future & async/await)Advanced
143What does the finally block do? JavaScript › Error HandlingJavaScriptError HandlingBeginner
144Can you use a for...of loop directly on a generator's return value? JavaScript › Iterators & GeneratorsJavaScriptIterators & GeneratorsBeginner
145How do you read and write an entire text file's contents using the simplest File class methods? C# › File I/O & StreamsC#File I/O & StreamsBeginner
146What exception signals the end of iteration, and how does a for-loop use it internally? Python › Iterators & the Iterator ProtocolPythonIterators & the Iterator ProtocolBeginner
147What does it mean that Python has 'automatic' memory management, and what's the trade-off compared to manual memory management in languages like C? Python › Memory Management & Garbage CollectionPythonMemory Management & Garbage CollectionBeginner
148What 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
149What is the purpose of the ServerCallContext parameter present in every gRPC server method, and what information does it expose? .NET › gRPC Services.NETgRPC ServicesBeginner
150What is a background job in the context of a Node.js web application, and why can't long-running work simply happen inside a request handler? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesBeginner
151What is the difference between a delayed job and a scheduled (repeatable) job in a Node.js job queue? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesBeginner
152What is the difference between throwing an error synchronously and calling a callback with an error as its first argument in Node.js? Node.js › Error HandlingNode.jsError HandlingBeginner
153What is the event loop, and why does it allow Node.js to handle many concurrent operations despite being single-threaded? Node.js › Event Loop & Non-blocking IONode.jsEvent Loop & Non-blocking IOBeginner
154What is a callback queue (or task queue) in the context of the Node.js event loop, and how does it relate to the call stack? Node.js › Event Loop & Non-blocking IONode.jsEvent Loop & Non-blocking IOBeginner
155What is the difference between the synchronous, callback-based, and promise-based variants of Node's fs module methods? Node.js › File System (fs) ModuleNode.jsFile System (fs) ModuleBeginner
156What is a Stream in Dart, and how does it differ from a Future in terms of how many values it can actually provide over time? Flutter › Dart Streams & StreamControllersFlutterDart Streams & StreamControllersBeginner
157Why is proper error handling important in a Flutter app, and what happens by default if an unhandled exception occurs somewhere within a running app? Flutter › Error Handling & Crash Reporting (Sentry & Crashlytics)FlutterError Handling & Crash Reporting (Sentry & Crashlytics)Beginner
158What is an isolate in Dart, and how does it fundamentally differ from a traditional operating system thread used for genuine concurrent execution in many other programming languages? Flutter › Flutter Isolates & MultithreadingFlutterFlutter Isolates & MultithreadingBeginner
159What is the main isolate in a Flutter app, and why should genuinely expensive, computationally intensive work generally be avoided from running directly on it? Flutter › Flutter Isolates & MultithreadingFlutterFlutter Isolates & MultithreadingBeginner
160What are the basic different provider types in Riverpod, such as Provider, StateProvider, and FutureProvider, and when would you specifically reach for each individual different one? Flutter › Flutter Riverpod Code Generation & ProvidersFlutterFlutter Riverpod Code Generation & ProvidersBeginner
161What is a platform channel in Flutter, and how does it let your Dart code actually communicate with genuine native Android or iOS code when a required specific capability is not already available through an existing plugin? Flutter › Platform Channels (Native Android & iOS Integration)FlutterPlatform Channels (Native Android & iOS Integration)Beginner
162How do you run basic animations in MAUI? .NET MAUI › Gestures & Animations.NET MAUIGestures & AnimationsIntermediate
163How do you run CPU-bound work without blocking the UI? .NET MAUI › Concurrency & Threading.NET MAUIConcurrency & ThreadingIntermediate
164How do you run basic animations in MAUI? .NET MAUI › Gestures & Animations.NET MAUIGestures & AnimationsIntermediate
165How do you run CPU-bound work without blocking the UI? .NET MAUI › Concurrency & Threading.NET MAUIConcurrency & ThreadingIntermediate
166How does Jest's mocking help isolate the code under test? JavaScript › Debugging, Testing & ToolingJavaScriptDebugging, Testing & ToolingIntermediate
167What is the difference between the microtask queue and the macrotask (task) queue? JavaScript › Event Loop & ConcurrencyJavaScriptEvent Loop & ConcurrencyIntermediate
168How does the event loop decide what to run next? JavaScript › Event Loop & ConcurrencyJavaScriptEvent Loop & ConcurrencyIntermediate
169How do you implement an infinite sequence using a generator, and why is this safe? JavaScript › Iterators & GeneratorsJavaScriptIterators & GeneratorsIntermediate
170How do you cancel an in-flight fetch() request? JavaScript › Networking: Fetch, XHR, WebSockets & CORSJavaScriptNetworking: Fetch, XHR, WebSockets & CORSIntermediate
171How does Memory<T> differ from Span<T>, and when would you use Memory<T> instead? C# › Arrays, Span<T> & Memory<T>C#Arrays, Span<T> & Memory<T>Intermediate
172What is exception filtering using the 'when' clause, and what advantage does it offer over catching and manually re-throwing? C# › Exception HandlingC#Exception HandlingIntermediate
173What is the relationship between generators and the iterator protocol? Python › Iterators & the Iterator ProtocolPythonIterators & the Iterator ProtocolIntermediate
174How do you include structured context (like a request ID) in every log message using LoggerAdapter or extra? Python › LoggingPythonLoggingIntermediate
175How does Python's generational garbage collector work, and why generations? Python › Memory Management & Garbage CollectionPythonMemory Management & Garbage CollectionIntermediate
176What does the node:readline module provide, and what is a common use case for it? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesIntermediate
177How does inter-process communication (IPC) work between a parent process and a child created with fork()? Node.js › Child Processes & Process ManagementNode.jsChild Processes & Process ManagementIntermediate
178How does the 'once' method differ from 'on' when subscribing to an EventEmitter's events, and when would you use it? Node.js › Events & EventEmitterNode.jsEvents & EventEmitterIntermediate
179How would you implement request correlation IDs to trace a single request's logs across multiple log lines and services? Node.js › Logging & MonitoringNode.jsLogging & MonitoringIntermediate
180How can a generator receive values sent into it during iteration using the send method, enabling two way communication with the calling code? PHP › Generators & IteratorsPHPGenerators & IteratorsIntermediate
181How does properly configuring PHP-FPM's process management settings, such as pm.max_children, affect an application's ability to handle concurrent traffic efficiently? PHP › Performance Optimization & OPcachePHPPerformance Optimization & OPcacheIntermediate
182How does lazy loading versus eager loading of resources and how minimizing unnecessary work within a request's critical path help improve overall PHP application response times? PHP › Performance Optimization & OPcachePHPPerformance Optimization & OPcacheIntermediate
183How do you properly set up Flutter's global error handling using FlutterError.onError and PlatformDispatcher.instance.onError to automatically capture every uncaught error and forward it to a crash reporting service? Flutter › Error Handling & Crash Reporting (Sentry & Crashlytics)FlutterError Handling & Crash Reporting (Sentry & Crashlytics)Intermediate
184How should you properly handle a genuine network timeout and other common network errors, such as no internet connectivity, when making a request using either the http or Dio packages? Flutter › Networking with HTTP & DioFlutterNetworking with HTTP & DioIntermediate
185How do you properly implement request cancellation using Dio's own CancelToken, such as cancelling a search request the moment a user genuinely types a brand new different search query? Flutter › Networking with HTTP & DioFlutterNetworking with HTTP & DioIntermediate
186How should you properly and correctly handle an error that genuinely occurs on the native side of a platform channel, and how does that particular error actually get properly reported back to your own Dart code? Flutter › Platform Channels (Native Android & iOS Integration)FlutterPlatform Channels (Native Android & iOS Integration)Intermediate
187How do you cancel long-running operations in MAUI? .NET MAUI › Concurrency & Threading.NET MAUIConcurrency & ThreadingAdvanced
188How do you cancel long-running operations in MAUI? .NET MAUI › Concurrency & Threading.NET MAUIConcurrency & ThreadingAdvanced
189How do global error handlers like window.onerror and unhandledrejection work? JavaScript › Error HandlingJavaScriptError HandlingAdvanced
190How do you implement a retry-with-backoff pattern around a function that might throw? JavaScript › Error HandlingJavaScriptError HandlingAdvanced
191How does top-level await work, and what constraint does it place on modules that import that module? JavaScript › ES ModulesJavaScriptES ModulesAdvanced
192Why does Promise.resolve().then(cb) run before setTimeout(cb, 0), even with a 0ms delay? JavaScript › Event Loop & ConcurrencyJavaScriptEvent Loop & ConcurrencyAdvanced
193What is 'starvation' of the macrotask queue, and how can recursive microtasks cause it? JavaScript › Event Loop & ConcurrencyJavaScriptEvent Loop & ConcurrencyAdvanced
194How would you stream-parse a very large JSON file without loading it entirely into memory? JavaScript › JSON & Data SerializationJavaScriptJSON & Data SerializationAdvanced
195How do Server-Sent Events (SSE) differ from WebSockets, and when would you choose them? JavaScript › Networking: Fetch, XHR, WebSockets & CORSJavaScriptNetworking: Fetch, XHR, WebSockets & CORSAdvanced
196How 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
197What is 'exception filtering with side effects' and why is it considered a controversial but sometimes useful technique for logging? C# › Exception HandlingC#Exception HandlingAdvanced
198How would you implement a thread-safe caching decorator that correctly handles concurrent calls from multiple threads? Python › DecoratorsPythonDecoratorsAdvanced
199How does Python 3.11's exception groups (ExceptionGroup) and the 'except*' syntax let you handle MULTIPLE unrelated exceptions raised together? Python › Exception HandlingPythonException HandlingAdvanced
200How would you implement a circuit breaker pattern using exception handling, to stop repeatedly calling a service that's consistently failing? Python › Exception HandlingPythonException HandlingAdvanced
201How would you implement a context manager for managing a lock (like threading.Lock) while ALSO adding a timeout, raising an error if the lock can't be acquired quickly enough? Python › File I/O & Context ManagersPythonFile I/O & Context ManagersAdvanced
202How would you implement a lazy, chainable iterator pipeline (like filter-then-map) from scratch? Python › Iterators & the Iterator ProtocolPythonIterators & the Iterator ProtocolAdvanced
203Why is logging generally considered thread-safe, and what should you still be careful about in multiprocessing? Python › LoggingPythonLoggingAdvanced
204What are common patterns for implementing a producer-consumer background processing pipeline using Channel<T> with a BackgroundService? .NET › Background Services.NETBackground ServicesAdvanced
205What is the 'cache stampede' (thundering herd) problem, and how can you mitigate it? .NET › Caching (In-Memory, Distributed & Redis).NETCaching (In-Memory, Distributed & Redis)Advanced
206How would you diagnose a thread pool starvation issue in a production ASP.NET Core application? .NET › Diagnostics & Performance.NETDiagnostics & PerformanceAdvanced
207What are the four types of gRPC service methods (unary, server streaming, client streaming, bidirectional streaming), and when is each appropriate? .NET › gRPC Services.NETgRPC ServicesAdvanced
208How would you implement a producer-consumer background processing pipeline using System.Threading.Channels alongside a BackgroundService? ASP.NET Core › Background Tasks & Hosted ServicesASP.NET CoreBackground Tasks & Hosted ServicesAdvanced
209How would you implement a background task queue accepting ad-hoc work items dynamically at runtime, rather than a fixed polling loop? ASP.NET Core › Background Tasks & Hosted ServicesASP.NET CoreBackground Tasks & Hosted ServicesAdvanced
210What is the 'cache stampede' (thundering herd) problem, and how would you mitigate it in an ASP.NET Core application? ASP.NET Core › CachingASP.NET CoreCachingAdvanced
211What is the difference between process.nextTick(), setImmediate(), and setTimeout(fn, 0) in terms of execution order? Node.js › Advanced Node.jsNode.jsAdvanced Node.jsAdvanced
212How does the V8 JavaScript engine's microtask queue interact with the Node.js event loop's macrotask phases, and why does this occasionally surprise developers? Node.js › Event Loop & Non-blocking IONode.jsEvent Loop & Non-blocking IOAdvanced
213How would you build an interactive CLI wizard that prompts the user for multiple pieces of input using a library like Inquirer.js? Node.js › CLI Tools & Scripting with Node.jsNode.jsCLI Tools & Scripting with Node.jsAdvanced
214How would you make an outgoing HTTP request from Node.js using the built-in fetch API versus the older http.request()? Node.js › HTTP & HTTPS ModulesNode.jsHTTP & HTTPS ModulesAdvanced
215How does connection pooling and persistent connections work with PDO, and what tradeoffs should be considered before enabling persistent connections? PHP › PDO & DatabasesPHPPDO & DatabasesAdvanced
216How should a long running PHP CLI script, such as a queue worker, handle graceful shutdown when it receives a termination signal from the operating system? PHP › PHP CLI ScriptingPHPPHP CLI ScriptingAdvanced
217What memory management considerations apply specifically to long running PHP CLI scripts, such as queue workers, that might process thousands of jobs without ever restarting? PHP › PHP CLI ScriptingPHPPHP CLI ScriptingAdvanced
218How does Dart's newer Isolate.run API simplify the process of running a specific one off computation on a separate isolate compared to the older, considerably more manual Isolate.spawn combined with ReceivePort approach? Flutter › Flutter Isolates & MultithreadingFlutterFlutter Isolates & MultithreadingAdvanced
219How can you properly implement request deduplication to prevent several genuinely separate identical simultaneous requests for exactly the same particular data from all actually and wastefully hitting your backend server together at once? Flutter › REST API Integration in FlutterFlutterREST API Integration in FlutterAdvanced
220How should you properly design your app's own networking layer to genuinely support parallel loading of several genuinely independent pieces of data needed for a single given screen, while still properly and gracefully handling the case where just one of those particular requests genuinely happens to fail? Flutter › REST API Integration in FlutterFlutterREST API Integration in FlutterAdvanced