next
Round
Technologies
Experiences
Contribute
Login
next
Round
Technologies
Experiences
Contribute
Login
Question Loading...
Streams
1. What are streams?
Level: Expert | Frequency: High
2. List elementary stream types.
Level: Expert | Frequency: High
3. What are advantages of streams.
Level: Expert | Frequency: High
4. Create a readable stream
Level: Expert | Frequency: High
5. How can you create a custom Transform stream in Node.js?
Level: Expert | Frequency: High
6. What is the `end` event in a readable stream, and how is it different from the `finish` event in a writable stream?
Level: Expert | Frequency: High
7. How can you handle errors in Node.js streams?
Level: Expert | Frequency: High
8. Explain the concept of object streams and provide an example use case.
Level: Expert | Frequency: High
9. Explain the difference between `ObjectMode` and `Buffer` mode in a readable stream.
Level: Expert | Frequency: High
10. Explain the difference between a flowing and a non-flowing readable stream.
Level: Expert | Frequency: High
11. What is the difference between the `data` event and the `readable` event in a readable stream?
Level: Expert | Frequency: High
12. How can you handle cleanup operations when working with streams?
Level: Expert | Frequency: High
13. What is the purpose of the `highWaterMark` option when creating a readable stream?
Level: Expert | Frequency: High
14. What is backpressure in Node.js streams, and how can you handle it?
Level: Expert | Frequency: High
15. What is the pause() method used for in a readable stream, and how can you resume data flow?
Level: Expert | Frequency: High
16. What is the purpose of the `stream.finished()` utility in Node.js?
Level: Expert | Frequency: High
17. How do you handle stream errors when working with async/await in Node.js?
Level: Expert | Frequency: High
18. How can you handle memory usage when dealing with large files in Node.js streams?
Level: Expert | Frequency: High
19. Explain the concept of piping in Node.js streams.
Level: Expert | Frequency: High
20. What is the purpose of pipeThrough function
Level: Expert | Frequency: High
21. What is the purpose of the `unpipe()` method in Node.js streams, and how does it work?
Level: Expert | Frequency: High
22. Explain the difference between `pipe()` and `on('data')` when working with streams.
Level: Expert | Frequency: High
23. What is the purpose of the `stream.pipeline()` function in Node.js?
Level: Expert | Frequency: High
24. write code of a stream to read a local file in node js
Level: Expert | Frequency: High
All Topics
Event Loop
Buffers
Streams
Events
Modules
Worker Threads
File Operations
Threads
Performance Optimisation
Websockets
Time functions
Clusters
Crypto