| 1 | What is the difference between fs.rename() and manually copying then deleting a file, particularly across different filesystems or drives? Node.js › File System (fs) Module | Node.js | File System (fs) Module | Intermediate |
| 2 | How do you safely watch a directory or file for changes using fs.watch(), and what are its known cross-platform limitations? Node.js › File System (fs) Module | Node.js | File System (fs) Module | Intermediate |
| 3 | What is the difference between the synchronous, callback-based, and promise-based variants of Node's fs module methods? Node.js › File System (fs) Module | Node.js | File System (fs) Module | Beginner |
| 4 | 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 |
| 5 | What are Node.js file descriptor limits, and how might a Node.js application unintentionally exhaust them? Node.js › File System (fs) Module | Node.js | File System (fs) Module | Advanced |
| 6 | What does the node:path module provide, and why should you always use it instead of manually concatenating file path strings? Node.js › Core Node.js Modules | Node.js | Core Node.js Modules | Intermediate |
| 7 | What is the node: prefix for core module imports, and why was it introduced? Node.js › Core Node.js Modules | Node.js | Core Node.js Modules | Beginner |
| 8 | What does path.parse() and path.format() do, and how are they useful for decomposing and reconstructing file paths? Node.js › Path & OS Modules | Node.js | Path & OS Modules | Beginner |
| 9 | What is the security risk of trusting a client-supplied filename for an uploaded file, and how do you mitigate it? Node.js › File Uploads & Media Processing | Node.js | File Uploads & Media Processing | Advanced |
| 10 | What is the difference between path.join() and path.resolve(), and when would you use each? Node.js › Path & OS Modules | Node.js | Path & OS Modules | Beginner |
| 11 | How would you validate an uploaded image's actual dimensions and reject ones that don't meet minimum or maximum size requirements? Node.js › File Uploads & Media Processing | Node.js | File Uploads & Media Processing | Intermediate |
| 12 | What does 'non-blocking I/O' mean, and how does a Node.js function like fs.readFile() achieve it compared to fs.readFileSync()? Node.js › Event Loop & Non-blocking IO | Node.js | Event Loop & Non-blocking IO | Intermediate |
| 13 | What is the difference between synchronous and asynchronous versions of the same core Node.js API, using fs.readFile vs fs.readFileSync as an example, and when is the synchronous version actually appropriate? Node.js › Event Loop & Non-blocking IO | Node.js | Event Loop & Non-blocking IO | Intermediate |
| 14 | How do you write cross-platform shell scripts in Node.js that work identically on Windows, macOS, and Linux? Node.js › CLI Tools & Scripting with Node.js | Node.js | CLI Tools & Scripting with Node.js | Intermediate |