Q21. What are Kotlin coroutines and when should you use them?
Coroutines are Kotlin's solution for asynchronous and concurrent code. They are lightweight, suspendable computations: a `suspend` function can pause without blocking a t...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (104 available).
Coroutines are Kotlin's solution for asynchronous and concurrent code. They are lightweight, suspendable computations: a `suspend` function can pause without blocking a t...
The Global Interpreter Lock is a mutex in CPython that allows only one thread to execute Python bytecode at a time. Consequences: - CPU-bound multithreading does not get ...
Narrowing reduces a union to a subset within a control-flow branch. Techniques: - typeof for primitives. - instanceof for classes. - The in operator for property presence...
I surface it early rather than hoping. Transparency is more valuable than protecting appearances, and late surprises are worse than early honesty. First I look at why. Is...
BANT and MEDDIC are qualification frameworks that force honesty about whether a deal is real. BANT covers Budget, Authority, Need and Timing. It is simple and useful for ...
A common implementation is SET key value NX PX ttl. NX sets the key only if it does not exist, and PX gives the lock an expiry so a crashed holder cannot deadlock the sys...
Every process has three standard streams: stdin (0), stdout (1) and stderr (2). Redirection connects them to files or other processes. ```bash cmd > out.log # stdout to f...
An extension function adds a method to a class without modifying or inheriting it. Resolution is static. ```kotlin fun String.toTitleCase(): String = split(" ").joinToStr...
Comprehensions are typically faster than an equivalent for-loop with append because the iteration runs in optimised bytecode without repeated method lookups. ```python sq...
Polymorphism lets one interface be used by many implementations, so callers depend on a contract rather than a concrete type. Subtype or runtime polymorphism: a base refe...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.