| 1 | What's the difference between shallow copy and deep copy for a nested data structure, and which functions perform each? Python › Data Types & Structures | Python | Data Types & Structures | Intermediate |
| 2 | How would you implement a custom, memory-efficient data structure using __slots__ instead of a regular class with a __dict__? Python › Data Types & Structures | Python | Data Types & Structures | Advanced |
| 3 | How do dictionaries maintain insertion order internally since Python 3.7, and what data structure change made this both possible and efficient? Python › Data Types & Structures | Python | Data Types & Structures | Advanced |
| 4 | How would you use collections.Counter to efficiently count occurrences and find the most common elements in a large dataset? Python › Data Types & Structures | Python | Data Types & Structures | Advanced |
| 5 | How would you choose between a list, a set, a dict, and a specialized structure like heapq for efficiently finding the K smallest/largest elements in a large dataset? Python › Data Types & Structures | Python | Data Types & Structures | Advanced |
| 6 | What is the difference between a set and a list in terms of uniqueness and ordering? Python › Data Types & Structures | Python | Data Types & Structures | Beginner |
| 7 | What is the difference between a Python list and a tuple? Python › Data Types & Structures | Python | Data Types & Structures | Beginner |
| 8 | How do you access, add, and remove items from a dictionary? Python › Data Types & Structures | Python | Data Types & Structures | Beginner |
| 9 | How do slicing operations work on a list, including negative indices and step values? Python › Data Types & Structures | Python | Data Types & Structures | Intermediate |
| 10 | Why must dictionary keys (and set elements) be hashable, and what makes an object hashable in Python? Python › Data Types & Structures | Python | Data Types & Structures | Intermediate |
| 11 | What is the difference between collections.deque and a regular list for queue-like operations? Python › Data Types & Structures | Python | Data Types & Structures | Intermediate |
| 12 | How does frozenset differ from a regular set, and what specific use case does its immutability enable? Python › Data Types & Structures | Python | Data Types & Structures | Advanced |
| 13 | How does Python's small integer caching (interning) affect identity comparisons ('is') versus equality comparisons ('==') for integers? Python › Data Types & Structures | Python | Data Types & Structures | Advanced |
| 14 | 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 |
| 15 | How does Python's list implementation achieve amortized O(1) append performance despite lists being dynamically resizable arrays under the hood? Python › Data Types & Structures | Python | Data Types & Structures | Advanced |
| 16 | What other probabilistic data structures does RedisBloom provide besides Bloom and Cuckoo filters, and what specific use cases do they address? Redis › RedisBloom (Probabilistic Data Structures) | Redis | RedisBloom (Probabilistic Data Structures) | Advanced |
| 17 | How do you add items to a Bloom filter and check if an item might already exist using RedisBloom commands? Redis › RedisBloom (Probabilistic Data Structures) | Redis | RedisBloom (Probabilistic Data Structures) | Beginner |
| 18 | What is the difference between EF Core's Code-First (migrations) approach and Database-First (scaffolding) approach? .NET › Entity Framework Core & Data Access | .NET | Entity Framework Core & Data Access | Intermediate |
| 19 | How does EF Core map inheritance hierarchies to database tables, and what are the three main strategies (TPH, TPT, TPC)? .NET › Entity Framework Core & Data Access | .NET | Entity Framework Core & Data Access | Intermediate |
| 20 | Why can items not be removed from a standard Bloom filter, and what alternative structure does RedisBloom offer if you need removal support? Redis › RedisBloom (Probabilistic Data Structures) | Redis | RedisBloom (Probabilistic Data Structures) | Intermediate |
| 21 | How does the configured false positive rate affect both the accuracy and the memory usage of a Bloom filter? Redis › RedisBloom (Probabilistic Data Structures) | Redis | RedisBloom (Probabilistic Data Structures) | Intermediate |
| 22 | How do you use shorter key names and more compact data structures to meaningfully reduce Redis's overall memory footprint? Redis › Redis Memory Optimization | Redis | Redis Memory Optimization | Intermediate |
| 23 | How do you create a simple immutable record using collections.namedtuple? Python › Dataclasses & NamedTuples | Python | Dataclasses & NamedTuples | Beginner |
| 24 | What is the difference between First(OrDefault) and Single(OrDefault) in EF Core queries, and when should you use each? .NET › Entity Framework Core & Data Access | .NET | Entity Framework Core & Data Access | Intermediate |
| 25 | How do you implement soft deletes in EF Core using a global query filter? .NET › Entity Framework Core & Data Access | .NET | Entity Framework Core & Data Access | Advanced |
| 26 | How does the CLR's type system distinguish between value types and reference types, and where is each typically allocated? .NET › CLR & Runtime | .NET | CLR & Runtime | Intermediate |
| 27 | How 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) | Python | Concurrency (asyncio/threading/multiprocessing) | Advanced |
| 28 | How does schema reuse work in OpenAPI (via $ref and components/schemas), and how does Swashbuckle handle types shared across multiple endpoints? ASP.NET Core › API Documentation with Swagger/OpenAPI | ASP.NET Core | API Documentation with Swagger/OpenAPI | Advanced |
| 29 | How do you merge multiple HyperLogLog structures together to get a combined unique count across them? Redis › HyperLogLog in Redis | Redis | HyperLogLog in Redis | Intermediate |
| 30 | What is the difference between a positional argument and an optional argument (flag) in argparse? Python › Command-Line Interfaces (argparse) | Python | Command-Line Interfaces (argparse) | Beginner |
| 31 | How do you write a basic list comprehension, and how does it compare to an equivalent for loop? Python › Comprehensions & Generators | Python | Comprehensions & Generators | Beginner |
| 32 | How do you add a filtering condition to a list comprehension using 'if'? Python › Comprehensions & Generators | Python | Comprehensions & Generators | Beginner |
| 33 | How does a try/except block work, and what happens if no matching except clause exists? Python › Exception Handling | Python | Exception Handling | Beginner |
| 34 | What are the common file modes ('r', 'w', 'a', 'rb') passed to open(), and what does each one do? Python › File I/O & Context Managers | Python | File I/O & Context Managers | Beginner |
| 35 | What is the difference between positional arguments and keyword arguments when calling a function? Python › Functions & Scope | Python | Functions & Scope | Beginner |
| 36 | How do default parameter values work, and when are they evaluated? Python › Functions & Scope | Python | Functions & Scope | Beginner |
| 37 | What are 'magic methods' (dunder methods) in Python, and why are they called that? Python › Magic Methods & Operator Overloading | Python | Magic Methods & Operator Overloading | Beginner |
| 38 | How does __repr__ help with debugging when printing a list of custom objects? Python › Magic Methods & Operator Overloading | Python | Magic Methods & Operator Overloading | Beginner |
| 39 | How does Python primarily manage memory for objects? Python › Memory Management & Garbage Collection | Python | Memory Management & Garbage Collection | Beginner |
| 40 | How do you restrict an argument's accepted values using the 'choices' parameter? Python › Command-Line Interfaces (argparse) | Python | Command-Line Interfaces (argparse) | Intermediate |
| 41 | How do you accept a variable number of arguments for a single flag, like a list of filenames? Python › Command-Line Interfaces (argparse) | Python | Command-Line Interfaces (argparse) | Intermediate |
| 42 | How do you provide a short and a long form for the same flag, like -v and --verbose? Python › Command-Line Interfaces (argparse) | Python | Command-Line Interfaces (argparse) | Intermediate |
| 43 | How do dict comprehensions and set comprehensions differ in syntax from list comprehensions? Python › Comprehensions & Generators | Python | Comprehensions & Generators | Intermediate |
| 44 | How do you write a nested comprehension, like flattening a list of lists into a single flat list? Python › Comprehensions & Generators | Python | Comprehensions & Generators | Intermediate |
| 45 | How does functools.total_ordering reduce boilerplate for comparison methods? Python › functools & Functional Programming Tools | Python | functools & Functional Programming Tools | Intermediate |
| 46 | How does Python know whether to treat a for-in target as iterable, and what error occurs if it isn't? Python › Iterators & the Iterator Protocol | Python | Iterators & the Iterator Protocol | Intermediate |
| 47 | What is the difference between iter(obj) and using obj directly in a for-loop, in terms of what Python calls internally? Python › Iterators & the Iterator Protocol | Python | Iterators & the Iterator Protocol | Intermediate |
| 48 | How do you overload arithmetic operators like + and - using __add__ and __sub__? Python › Magic Methods & Operator Overloading | Python | Magic Methods & Operator Overloading | Intermediate |
| 49 | What do __eq__ and __hash__ need to satisfy together, and what happens if you only override __eq__? Python › Magic Methods & Operator Overloading | Python | Magic Methods & Operator Overloading | Intermediate |
| 50 | How do __len__, __getitem__, and __setitem__ let a custom class act like a sequence or mapping? Python › Magic Methods & Operator Overloading | Python | Magic Methods & Operator Overloading | Intermediate |
| 51 | 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 |
| 52 | How does __contains__ let you customize the behavior of the 'in' operator? Python › Magic Methods & Operator Overloading | Python | Magic Methods & Operator Overloading | Intermediate |
| 53 | What is the sys.getsizeof() function, and what are its limitations for measuring memory usage? Python › Memory Management & Garbage Collection | Python | Memory Management & Garbage Collection | Intermediate |
| 54 | What role does the class namespace dict play during class creation, and how can __prepare__ customize it? Python › Metaclasses & Class Customization | Python | Metaclasses & Class Customization | Intermediate |
| 55 | How does __set_name__ let a descriptor discover the attribute name it's assigned to within a class? Python › Metaclasses & Class Customization | Python | Metaclasses & Class Customization | Intermediate |
| 56 | What is the practical difference between isinstance(obj, cls) and type(obj) is cls, particularly regarding metaclasses and inheritance? Python › Metaclasses & Class Customization | Python | Metaclasses & Class Customization | Intermediate |
| 57 | What is the Common Type System (CTS), and how does it enable interoperability between different .NET languages? .NET › CLR & Runtime | .NET | CLR & Runtime | Intermediate |
| 58 | How do you write a comprehension with MULTIPLE 'if' conditions, and how does that differ from combining them with 'and'? Python › Comprehensions & Generators | Python | Comprehensions & Generators | Advanced |
| 59 | How would you implement a caching/memoization decorator from scratch, similar to functools.lru_cache? Python › Decorators | Python | Decorators | Advanced |
| 60 | How do properties and descriptors interact with __slots__, and what special consideration is needed? Python › Descriptors & Properties | Python | Descriptors & Properties | Advanced |
| 61 | 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 |
| 62 | 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 |
| 63 | What is the difference between __iter__ returning self versus returning a separate iterator object? Python › Iterators & the Iterator Protocol | Python | Iterators & the Iterator Protocol | Advanced |
| 64 | How does itertools.groupby depend on input order, and what's a common mistake when using it? Python › Iterators & the Iterator Protocol | Python | Iterators & the Iterator Protocol | Advanced |
| 65 | How do __iadd__ and other in-place operator methods (__isub__, __imul__) differ from their non-in-place counterparts? Python › Magic Methods & Operator Overloading | Python | Magic Methods & Operator Overloading | Advanced |
| 66 | How does __bool__ (or the legacy __nonzero__) determine an object's truthiness, and what's the fallback if it's not defined? Python › Magic Methods & Operator Overloading | Python | Magic Methods & Operator Overloading | Advanced |
| 67 | How does the weakref module help avoid reference cycles and memory leaks? Python › Memory Management & Garbage Collection | Python | Memory Management & Garbage Collection | Advanced |
| 68 | How does object interning (like small integer caching and string interning) affect memory and identity comparisons? Python › Memory Management & Garbage Collection | Python | Memory Management & Garbage Collection | Advanced |
| 69 | What is memory fragmentation in the context of Python's object allocator, and how does pymalloc address it for small objects? Python › Memory Management & Garbage Collection | Python | Memory Management & Garbage Collection | Advanced |
| 70 | How does __class_getitem__ enable generic-looking syntax like MyClass[int]? Python › Metaclasses & Class Customization | Python | Metaclasses & Class Customization | Advanced |
| 71 | What is boxing and unboxing, and what performance cost does it incur? .NET › CLR & Runtime | .NET | CLR & Runtime | Advanced |