W3
Teacher
Explore
Browse by field
Artificial Intelligence
Accounting & Finance
Information Technology
Show all fields
Interview Q&A
All Interview Questions
Beginner
Intermediate
Advanced
Practice
MCQs
Quizzes
Mock Interviews
About
Light
Dark
Auto
Sign in
Get Started
Search interview questions
Search
17 questions for “Streams & Buffers”
Found in 1 field. Select a question to see its full answer.
Information Technology
17 questions in 1 technology
#
Question
Technology
Topic
Level
1
How 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 Processing
Node.js
File System & File Processing
Intermediate
2
What is backpressure in Node.js
streams
, and how do you handle it correctly when piping data?
Node.js › Advanced Node.js
Node.js
Advanced Node.js
Advanced
3
What is the difference between fs.readFile() and fs.createReadStream() for reading a file in Node.js?
Node.js › File System & File Processing
Node.js
File System & File Processing
Beginner
4
What is the difference between multer's diskStorage and memoryStorage engines?
Node.js › File Uploads & Media Processing
Node.js
File Uploads & Media Processing
Beginner
5
How 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 Handling
Node.js
Error Handling
Intermediate
6
How 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 Processing
Node.js
File Uploads & Media Processing
Intermediate
7
What 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 Servers
Node.js
HTTP & Web Servers
Intermediate
8
How 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 Management
Node.js
Child Processes & Process Management
Intermediate
9
How 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) Module
Node.js
File System (fs) Module
Intermediate
10
What 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 Object
Node.js
Global Objects & the process Object
Intermediate
Show all 17 questions in Information Technology