| 1 | How do you implement a debounce function using closures, and how is it a functional programming technique? JavaScript › Functional Programming | JavaScript | Functional Programming | Advanced |
| 2 | How would you use BiFunction combined with Stream's reduce() to implement a custom aggregation, and how does this relate to the more general concept of a fold operation in functional programming? Java › Functional Interfaces & Method References | Java | Functional Interfaces & Method References | Advanced |
| 3 | What does 'immutability' mean and why does functional code favor it? JavaScript › Functional Programming | JavaScript | Functional Programming | Beginner |
| 4 | Why are recursion and immutable data often used together in functional style, instead of loops with mutable counters? JavaScript › Functional Programming | JavaScript | Functional Programming | Intermediate |
| 5 | What is a pure function? JavaScript › Functional Programming | JavaScript | Functional Programming | Beginner |
| 6 | What is a higher-order function? JavaScript › Functional Programming | JavaScript | Functional Programming | Beginner |
| 7 | What is function composition and how do you implement it? JavaScript › Functional Programming | JavaScript | Functional Programming | Intermediate |
| 8 | What is currying and what problem does it solve? JavaScript › Functional Programming | JavaScript | Functional Programming | Intermediate |
| 9 | What does 'referential transparency' mean, and how does it enable optimizations like memoization? JavaScript › Functional Programming | JavaScript | Functional Programming | Advanced |
| 10 | What are functors and monads, at a practical level, and does JavaScript have native support for them? JavaScript › Functional Programming | JavaScript | Functional Programming | Advanced |
| 11 | How do you avoid deeply nested, mutation-heavy code when updating nested state immutably? JavaScript › Functional Programming | JavaScript | Functional Programming | Advanced |
| 12 | What is the difference between functools.cache and functools.lru_cache? Python › functools & Functional Programming Tools | Python | functools & Functional Programming Tools | Beginner |
| 13 | How do you clear or inspect the cache of an lru_cache-decorated function? Python › functools & Functional Programming Tools | Python | functools & Functional Programming Tools | Advanced |
| 14 | What is the functools module used for in Python? Python › functools & Functional Programming Tools | Python | functools & Functional Programming Tools | Beginner |
| 15 | How do you use functools.partial to fix keyword arguments for logging or callback functions? Python › functools & Functional Programming Tools | Python | functools & Functional Programming Tools | Beginner |
| 16 | How does functools.partial work and when is it useful? Python › functools & Functional Programming Tools | Python | functools & Functional Programming Tools | Intermediate |
| 17 | What does functools.reduce do, and why is it often discouraged in favor of loops? Python › functools & Functional Programming Tools | Python | functools & Functional Programming Tools | Intermediate |
| 18 | How does @functools.wraps preserve metadata when writing decorators? Python › functools & Functional Programming Tools | Python | functools & Functional Programming Tools | Intermediate |
| 19 | How does functools.total_ordering reduce boilerplate for comparison methods? Python › functools & Functional Programming Tools | Python | functools & Functional Programming Tools | Intermediate |
| 20 | What does functools.reduce's initializer argument do, and why should you usually provide one? Python › functools & Functional Programming Tools | Python | functools & Functional Programming Tools | Intermediate |
| 21 | What is the practical difference between using functools.reduce and a plain for-loop for accumulation? Python › functools & Functional Programming Tools | Python | functools & Functional Programming Tools | Intermediate |
| 22 | How does functools.singledispatch enable function overloading based on argument type? Python › functools & Functional Programming Tools | Python | functools & Functional Programming Tools | Advanced |
| 23 | What is functools.cached_property and how does it differ from @property combined with manual caching? Python › functools & Functional Programming Tools | Python | functools & Functional Programming Tools | Advanced |
| 24 | Why is caution needed when applying @lru_cache directly to instance methods? Python › functools & Functional Programming Tools | Python | functools & Functional Programming Tools | Advanced |
| 25 | How does functools.cmp_to_key bridge old-style comparison functions with Python 3's key-based sorting? Python › functools & Functional Programming Tools | Python | functools & Functional Programming Tools | Advanced |
| 26 | How can functools.lru_cache be used with typed=True, and what does that change? Python › functools & Functional Programming Tools | Python | functools & Functional Programming Tools | Advanced |
| 27 | What's the difference between map() and forEach()? JavaScript › Arrays & Array Methods | JavaScript | Arrays & Array Methods | Beginner |
| 28 | How does filter() work? JavaScript › Arrays & Array Methods | JavaScript | Arrays & Array Methods | Beginner |
| 29 | What does reduce() do and what are its arguments? JavaScript › Arrays & Array Methods | JavaScript | Arrays & Array Methods | Beginner |
| 30 | What is a unit test and what makes a good one? JavaScript › Debugging, Testing & Tooling | JavaScript | Debugging, Testing & Tooling | Beginner |
| 31 | How do you import everything from a module under one namespace object? JavaScript › ES Modules | JavaScript | ES Modules | Beginner |
| 32 | How do find() and findIndex() differ from filter()? JavaScript › Arrays & Array Methods | JavaScript | Arrays & Array Methods | Intermediate |
| 33 | How is the Decorator pattern typically implemented in JavaScript? JavaScript › Design Patterns in JavaScript | JavaScript | Design Patterns in JavaScript | Intermediate |
| 34 | How do you assign default values while destructuring? JavaScript › Destructuring, Spread & Rest | JavaScript | Destructuring, Spread & Rest | Intermediate |
| 35 | How does the rest parameter differ from the spread operator, even though they use the same '...' syntax? JavaScript › Destructuring, Spread & Rest | JavaScript | Destructuring, Spread & Rest | Intermediate |
| 36 | How do you write an async context manager more concisely using @contextlib.asynccontextmanager? Python › Async Generators & Async Context Managers | Python | Async Generators & Async Context Managers | Intermediate |
| 37 | Why should you use functools.wraps when writing a decorator, and what problem does it solve? Python › Decorators | Python | Decorators | Intermediate |
| 38 | How do you use functools.lru_cache to add memoization to a function with a single decorator? Python › Decorators | Python | Decorators | Intermediate |
| 39 | How does the 'nonlocal' keyword let a nested function modify a variable in its ENCLOSING (not global) scope? Python › Functions & Scope | Python | Functions & Scope | Intermediate |
| 40 | How does the itertools module complement the iterator protocol? Python › Iterators & the Iterator Protocol | Python | Iterators & the Iterator Protocol | Intermediate |
| 41 | How do comparison magic methods like __lt__, __le__, __gt__, and __ge__ support custom sorting? Python › Magic Methods & Operator Overloading | Python | Magic Methods & Operator Overloading | Intermediate |
| 42 | What is memoization, and how does it differ from a general-purpose external cache like Redis? Node.js › Caching | Node.js | Caching | Intermediate |
| 43 | What is the difference between flat() and flatMap()? JavaScript › Arrays & Array Methods | JavaScript | Arrays & Array Methods | Advanced |
| 44 | What is the Command pattern and where is it useful in JavaScript apps? JavaScript › Design Patterns in JavaScript | JavaScript | Design Patterns in JavaScript | Advanced |
| 45 | When is it a mistake to force a 'classic' design pattern into idiomatic JavaScript? JavaScript › Design Patterns in JavaScript | JavaScript | Design Patterns in JavaScript | Advanced |
| 46 | What's the performance and memory advantage of a generator-based lazy pipeline over building intermediate arrays with map/filter? JavaScript › Iterators & Generators | JavaScript | Iterators & Generators | Advanced |
| 47 | How does LINQ's Aggregate() method work, and how would you use it to implement a custom reduction not covered by Sum()/Average()/Count()? C# › LINQ | C# | LINQ | Advanced |
| 48 | How would you implement a memory-efficient sliding window or batching generator over a large iterable? Python › Comprehensions & Generators | Python | Comprehensions & Generators | Advanced |
| 49 | How would you use concurrent.futures.ProcessPoolExecutor together with asyncio to run CPU-bound work without blocking the event loop? Python › Concurrency (asyncio/threading/multiprocessing) | Python | Concurrency (asyncio/threading/multiprocessing) | Advanced |
| 50 | How would you efficiently merge two dictionaries in modern Python, and how do the different approaches handle overlapping keys? Python › Data Types & Structures | Python | Data Types & Structures | Advanced |
| 51 | How do you use functools.partial to create a new function with some arguments pre-filled? Python › Functions & Scope | Python | Functions & Scope | Advanced |
| 52 | How does Python evaluate default argument expressions ONLY ONCE at definition time, and what SAFE pattern exploits this for genuinely useful caching? Python › Functions & Scope | Python | Functions & Scope | Advanced |
| 53 | How does itertools.tee let you iterate over the same iterator multiple times independently? Python › Iterators & the Iterator Protocol | Python | Iterators & the Iterator Protocol | Advanced |