All fields

“Streams” in Information Technology

120 questions across 8 technologies.

Information Technology

120 questions in 8 technologies

#QuestionTechnologyTopicLevel
1What is a consumer group in Redis Streams, and how does it enable multiple workers to process the same stream cooperatively? Redis › StreamsRedisStreamsIntermediate
2How would you design a robust event sourcing system using Redis Streams as the primary event log? Redis › StreamsRedisStreamsAdvanced
3What are C++ I/O streams? C++ › I/O StreamsC++I/O StreamsBeginner
4How 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
5What's the difference between piping streams with pipeThrough() and pipeTo()? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsAdvanced
6What is the BLoC pattern, and how does it genuinely separate your app's own business logic from its user interface using genuine Streams and events? Flutter › State Management with BLoC & CubitFlutterState Management with BLoC & CubitBeginner
7What 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
8How would you copy a large file efficiently in Node.js, and what's the difference between fs.copyFile() and manually piping streams? Node.js › File System & File ProcessingNode.jsFile System & File ProcessingIntermediate
9What are the limitations of using a plain Redis list as a message queue, and when should you consider Redis Streams instead? Redis › Redis as a Message QueueRedisRedis as a Message QueueIntermediate
10What is backpressure in Node.js streams, and how do you handle it correctly when piping data? Node.js › Advanced Node.jsNode.jsAdvanced Node.jsAdvanced
11What is the difference between byte streams (InputStream/OutputStream) and character streams (Reader/Writer) in the classic java.io package? Java › I/O & NIOJavaI/O & NIOBeginner
12What is the difference between Kinesis Data Streams, Kinesis Data Firehose, and Kinesis Data Analytics? AWS › Amazon Kinesis & Data StreamingAWSAmazon Kinesis & Data StreamingBeginner
13How does DynamoDB Streams work and what is it commonly used for? AWS › Amazon DynamoDBAWSAmazon DynamoDBIntermediate
14What is a shard in Kinesis Data Streams, and how does it affect throughput? AWS › Amazon Kinesis & Data StreamingAWSAmazon Kinesis & Data StreamingIntermediate
15How would you implement the Observer pattern in Java, and how does it compare to using the built-in PropertyChangeSupport or a reactive streams library? Java › Design Patterns in JavaJavaDesign Patterns in JavaAdvanced
16What is enhanced fan out in Kinesis Data Streams, and why is it useful for multiple consumers? AWS › Amazon Kinesis & Data StreamingAWSAmazon Kinesis & Data StreamingAdvanced
17How does data retention and replay work in Kinesis Data Streams? AWS › Amazon Kinesis & Data StreamingAWSAmazon Kinesis & Data StreamingAdvanced
18What is a Redis Stream, and how does it differ from a regular Redis list when used as a messaging system? Redis › StreamsRedisStreamsBeginner
19How do you add a new entry to a Redis Stream, and how do you read entries back from it? Redis › StreamsRedisStreamsBeginner
20How do you acknowledge that a message read from a consumer group has been successfully processed? Redis › StreamsRedisStreamsIntermediate
21How do you limit the size of a Redis Stream to prevent it from growing indefinitely and consuming unlimited memory? Redis › StreamsRedisStreamsIntermediate
22How would you handle a message that was delivered to a consumer but never acknowledged, perhaps because that consumer crashed while processing it? Redis › StreamsRedisStreamsAdvanced
23What is the difference between std::cout, std::cerr, and std::clog? C++ › I/O StreamsC++I/O StreamsBeginner
24How do you check for and handle stream errors? C++ › I/O StreamsC++I/O StreamsBeginner
25How do you read a file with ifstream and write with ofstream? C++ › I/O StreamsC++I/O StreamsIntermediate
26What is the difference between >> and std::getline for input? C++ › I/O StreamsC++I/O StreamsIntermediate
27What is the difference between std::endl and '\n'? C++ › I/O StreamsC++I/O StreamsIntermediate
28What is std::stringstream and when is it useful? C++ › I/O StreamsC++I/O StreamsIntermediate
29What are stream manipulators and how are they used? C++ › I/O StreamsC++I/O StreamsAdvanced
30How do you overload operator<< for a custom type? C++ › I/O StreamsC++I/O StreamsAdvanced
31How do you improve iostream performance for large I/O? C++ › I/O StreamsC++I/O StreamsAdvanced
32What is an async iterator? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsBeginner
33How do you loop over an async iterable? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsBeginner
34How 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
35What is the difference between File.ReadAllLines() and File.ReadLines() in terms of memory usage? C# › File I/O & StreamsC#File I/O & StreamsBeginner
36What 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
37How does the listen method let you subscribe to a Stream and react each time it emits a new value? Flutter › Dart Streams & StreamControllersFlutterDart Streams & StreamControllersBeginner
38How do you write an async generator function? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsIntermediate
39What is the ReadableStream API used for? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsIntermediate
40What does return() do on an async iterator? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsIntermediate
41How does the 'using' statement (or 'using' declaration) ensure a FileStream is properly closed, even if an exception occurs? C# › File I/O & StreamsC#File I/O & StreamsIntermediate
42How do StreamReader and StreamWriter differ from directly using a FileStream, and when would you choose them? C# › File I/O & StreamsC#File I/O & StreamsIntermediate
43What 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
44What is the difference between a single subscription stream and a broadcast stream in Dart, and when would you specifically need to use a broadcast stream instead? Flutter › Dart Streams & StreamControllersFlutterDart Streams & StreamControllersIntermediate
45How do stream transformation methods, such as map, where, and distinct, let you process and filter the values emitted by a Stream, similar to how these same methods work on a regular Dart collection? Flutter › Dart Streams & StreamControllersFlutterDart Streams & StreamControllersIntermediate
46How do you convert a Node.js Readable stream into an async iterable? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsAdvanced
47How do you run multiple async iterators concurrently and merge their results? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsAdvanced
48Why might Promise.all() be the wrong tool when consuming many async iterators? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsAdvanced
49How do you add a timeout to an async iterator's next() call? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsAdvanced
50How would you implement a custom Stream subclass to wrap another stream with additional behavior, like counting bytes read? C# › File I/O & StreamsC#File I/O & StreamsAdvanced
51How do you use FileSystemWatcher to monitor a directory for file changes, and what are its common reliability pitfalls? C# › File I/O & StreamsC#File I/O & StreamsAdvanced
52How would you implement memory-mapped file access using MemoryMappedFile for efficient random access to a very large file? C# › File I/O & StreamsC#File I/O & StreamsAdvanced
53How do you correctly implement async, cancellable file I/O using CancellationToken with FileStream operations? C# › File I/O & StreamsC#File I/O & StreamsAdvanced
54How would you implement a robust, atomic file-write operation that avoids leaving a corrupted or partially-written file if the process crashes mid-write? C# › File I/O & StreamsC#File I/O & StreamsAdvanced
55How does the StreamBuilder widget in Flutter let you build a reactive user interface that automatically updates whenever a Stream emits a new value, without needing to manually manage the underlying subscription yourself? Flutter › Dart Streams & StreamControllersFlutterDart Streams & StreamControllersAdvanced
56What are common StreamTransformer patterns, such as debounce and throttle, and how do they help control the actual rate at which a stream's events are processed, particularly for something like a rapidly typed search query? Flutter › Dart Streams & StreamControllersFlutterDart Streams & StreamControllersAdvanced
57What does the finally block do? JavaScript › Error HandlingJavaScriptError HandlingBeginner
58Can you use a for...of loop directly on a generator's return value? JavaScript › Iterators & GeneratorsJavaScriptIterators & GeneratorsBeginner
59What does the finally block guarantee, and when is it commonly used? C# › Exception HandlingC#Exception HandlingBeginner
60What is the Java Collections Framework, and what are the core interfaces (List, Set, Map, Queue) at its foundation? Java › Collections FrameworkJavaCollections FrameworkBeginner
61What is the difference between the Iterable and Iterator interfaces, and how does the enhanced for-each loop rely on them? Java › Collections FrameworkJavaCollections FrameworkBeginner
62How do you retrieve all constants of an enum type, and how would you iterate over them? Java › EnumsJavaEnumsBeginner
63What is a functional interface, and what are the four core functional interfaces in java.util.function (Function, Predicate, Consumer, Supplier)? Java › Functional Interfaces & Method ReferencesJavaFunctional Interfaces & Method ReferencesBeginner
64What is the difference between fs.readFile() and fs.createReadStream() for reading a file in Node.js? Node.js › File System & File ProcessingNode.jsFile System & File ProcessingBeginner
65What is the difference between multer's diskStorage and memoryStorage engines? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingBeginner
66What is the Redis Pub/Sub feature, and how does it let different parts of an application communicate? Redis › Pub/SubRedisPub/SubBeginner
67What options does Redis offer for implementing a message queue, and how do they differ from each other? Redis › Redis as a Message QueueRedisRedis as a Message QueueBeginner
68What 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
69How do you listen for authentication state changes in Firebase Authentication, letting your Flutter app automatically know whenever a user actually signs in or signs out? Flutter › Firebase Authentication in FlutterFlutterFirebase Authentication in FlutterBeginner
70What is a WebSocket, and how does it let a Flutter app maintain a genuinely persistent, continuously open connection with a server for genuine real time bidirectional communication? Flutter › WebSockets & Real Time Data in FlutterFlutterWebSockets & Real Time Data in FlutterBeginner
71How does the web_socket_channel package let you actually properly connect to a WebSocket server and both send and receive messages using Dart's own familiar Stream and Sink interfaces? Flutter › WebSockets & Real Time Data in FlutterFlutterWebSockets & Real Time Data in FlutterBeginner
72How do you efficiently build up a large string? C++ › Strings & string_viewC++Strings & string_viewIntermediate
73How does Jest's mocking help isolate the code under test? JavaScript › Debugging, Testing & ToolingJavaScriptDebugging, Testing & ToolingIntermediate
74How does the event loop decide what to run next? JavaScript › Event Loop & ConcurrencyJavaScriptEvent Loop & ConcurrencyIntermediate
75How do you implement an infinite sequence using a generator, and why is this safe? JavaScript › Iterators & GeneratorsJavaScriptIterators & GeneratorsIntermediate
76How do you cancel an in-flight fetch() request? JavaScript › Networking: Fetch, XHR, WebSockets & CORSJavaScriptNetworking: Fetch, XHR, WebSockets & CORSIntermediate
77How does an iterator method interact with try/finally, and when does the finally block actually execute given the method's lazy, on-demand nature? C# › Iterators & yield returnC#Iterators & yield returnIntermediate
78How does the IDisposable pattern and the 'using' statement help manage UNMANAGED resources that the garbage collector doesn't automatically clean up? C# › Memory & Garbage CollectionC#Memory & Garbage CollectionIntermediate
79What is the Strategy pattern, and how do Java 8's functional interfaces and lambdas make implementing it significantly more concise than the traditional interface-plus-implementation-classes approach? Java › Design Patterns in JavaJavaDesign Patterns in JavaIntermediate
80What are the four kinds of method references in Java (static, instance-bound, instance-unbound, and constructor), and how does the compiler determine which form applies? Java › Functional Interfaces & Method ReferencesJavaFunctional Interfaces & Method ReferencesIntermediate
81How do the default methods andThen() and compose() on Function work, and what's the difference between them for chaining transformations? Java › Functional Interfaces & Method ReferencesJavaFunctional Interfaces & Method ReferencesIntermediate
82What is the difference between UnaryOperator<T> and Function<T,T>, and why does UnaryOperator exist as a separate, more specific interface? Java › Functional Interfaces & Method ReferencesJavaFunctional Interfaces & Method ReferencesIntermediate
83How do the primitive-specialized functional interfaces (IntFunction, ToIntFunction, IntPredicate, IntUnaryOperator, etc.) avoid the performance cost of autoboxing, and when should you prefer them over the generic equivalents? Java › Functional Interfaces & Method ReferencesJavaFunctional Interfaces & Method ReferencesIntermediate
84How does the Predicate interface's default methods and(), or(), and negate() enable composing complex boolean conditions from simpler ones? Java › Functional Interfaces & Method ReferencesJavaFunctional Interfaces & Method ReferencesIntermediate
85What is the difference between a Consumer<T> and a BiConsumer<T,U>, and how would you use BiConsumer for operations needing two inputs but no return value, such as Map.forEach()? Java › Functional Interfaces & Method ReferencesJavaFunctional Interfaces & Method ReferencesIntermediate
86How do you write a generic method (as opposed to a generic class), and how does the compiler infer the type parameter from the arguments passed at a call site? Java › GenericsJavaGenericsIntermediate
87What is LINQ, and how does it simplify querying collections compared to writing manual loops? C# › LINQC#LINQIntermediate
88How do you correctly propagate and handle errors from a Node.js stream, given that stream errors aren't caught by a surrounding try/catch? Node.js › Error HandlingNode.jsError HandlingIntermediate
89How would you stream a large file upload directly to processing (like virus scanning or transcoding) without first saving the entire file to disk? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingIntermediate
90What is the purpose of the Content-Length and Transfer-Encoding: chunked headers, and why can't a response use both simultaneously? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersIntermediate
91How would you pipe the output of one child process directly into the input of another, replicating a shell pipeline in Node.js? Node.js › Child Processes & Process ManagementNode.jsChild Processes & Process ManagementIntermediate
92How would you read a large file efficiently using a stream rather than loading it entirely into memory with fs.readFile()? Node.js › File System (fs) ModuleNode.jsFile System (fs) ModuleIntermediate
93What is the global Buffer class, and how does it relate to the process object's broader role in giving access to system-level capabilities? Node.js › Global Objects & the process ObjectNode.jsGlobal Objects & the process ObjectIntermediate
94What are the reliability limitations of keyspace notifications that developers should understand before relying on them for critical application logic? Redis › Keyspace NotificationsRedisKeyspace NotificationsIntermediate
95What happens to a message published on a channel if there are currently no subscribers listening to that channel? Redis › Pub/SubRedisPub/SubIntermediate
96What features does Redis offer that have no direct equivalent in Memcached, and how might these influence a technology choice? Redis › Redis vs MemcachedRedisRedis vs MemcachedIntermediate
97How do Firestore's real time listeners, specifically using a StreamBuilder in Flutter, let your app's interface automatically update the moment underlying data changes? Flutter › Cloud Firestore & Firebase StorageFlutterCloud Firestore & Firebase StorageIntermediate
98How does Hive's own reactive ValueListenableBuilder integration let your user interface automatically and properly rebuild the moment underlying data stored within a specific Hive box actually genuinely changes? Flutter › Hive & NoSQL Local StorageFlutterHive & NoSQL Local StorageIntermediate
99How should you properly listen to and correctly handle the ongoing purchase update stream provided by the in_app_purchase package, properly reacting appropriately to a pending, completed, or genuinely failed purchase status? Flutter › In App Purchases in FlutterFlutterIn App Purchases in FlutterIntermediate
100What is an EventChannel, and how does it genuinely differ from a MethodChannel specifically in terms of properly supporting an ongoing continuous stream of native events rather than just one single request and response? Flutter › Platform Channels (Native Android & iOS Integration)FlutterPlatform Channels (Native Android & iOS Integration)Intermediate
101How should you properly implement automatic reconnection logic for a WebSocket connection that genuinely gets unexpectedly dropped, such as when a device briefly loses its internet connectivity or moves between different networks? Flutter › WebSockets & Real Time Data in FlutterFlutterWebSockets & Real Time Data in FlutterIntermediate
102How does using a StreamProvider in Riverpod, or a similar reactive approach, let you cleanly integrate a WebSocket's own incoming message stream directly into your app's own overall state management solution? Flutter › WebSockets & Real Time Data in FlutterFlutterWebSockets & Real Time Data in FlutterIntermediate
103How would you stream-parse a very large JSON file without loading it entirely into memory? JavaScript › JSON & Data SerializationJavaScriptJSON & Data SerializationAdvanced
104How do Server-Sent Events (SSE) differ from WebSockets, and when would you choose them? JavaScript › Networking: Fetch, XHR, WebSockets & CORSJavaScriptNetworking: Fetch, XHR, WebSockets & CORSAdvanced
105How would you write a custom iterator that safely handles resource cleanup for a lazily-enumerated database cursor, ensuring the connection is closed even if enumeration is abandoned early? C# › Iterators & yield returnC#Iterators & yield returnAdvanced
106How would you implement a custom Comparator with multiple sort criteria (e.g., sort by last name, then by first name as a tiebreaker) using the Comparator.comparing() and thenComparing() fluent API? Java › Collections FrameworkJavaCollections FrameworkAdvanced
107How would you implement a custom compareTo()-based ordering for an enum that differs from its natural declaration-order ordering, given Comparable's default implementation uses ordinal()? Java › EnumsJavaEnumsAdvanced
108How 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 ReferencesJavaFunctional Interfaces & Method ReferencesAdvanced
109How would you use a local class defined within a method to implement a fairly complex, stateful callback that needs multiple methods and constructor parameters, where a lambda expression genuinely wouldn't suffice? Java › Inner Classes & Anonymous ClassesJavaInner Classes & Anonymous ClassesAdvanced
110What is an async generator, and how does 'for await...of' let you consume asynchronously produced data? Node.js › Async PatternsNode.jsAsync PatternsAdvanced
111What is the node:stream module's Transform stream, and how does it differ from a Readable or Writable stream? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesAdvanced
112How would you process a very large CSV file in Node.js without loading the entire file into memory? Node.js › File System & File ProcessingNode.jsFile System & File ProcessingAdvanced
113How would you process and resize an uploaded image in Node.js using the sharp library, and why is sharp generally preferred over pure-JavaScript alternatives? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingAdvanced
114How would you implement resumable/chunked file uploads in Node.js to handle very large files over unreliable network connections? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingAdvanced
115How would you implement Server-Sent Events (SSE) in Node.js to push real-time updates to a browser client over a single long-lived HTTP connection? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersAdvanced
116How would you implement HTTP response streaming in Node.js to begin sending data to a client before the entire response is ready, such as for a large report? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersAdvanced
117How would you build a reliable cache invalidation system using keyspace notifications, while accounting for their delivery limitations? Redis › Keyspace NotificationsRedisKeyspace NotificationsAdvanced
118How would you design a real time notification system using Pub/Sub while working around its lack of guaranteed message delivery? Redis › Pub/SubRedisPub/SubAdvanced
119What patterns help ensure exactly once or at least once processing semantics when using Redis as a message queue for critical tasks? Redis › Redis as a Message QueueRedisRedis as a Message QueueAdvanced
120How 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