1. Which module helps create child processes in Node.js?
The `child_process` module allows Node.js to execute system commands and spawn subprocesses.
Get the Preplance app for a seamless learning experience. Practice offline, get daily streaks, and stay ahead with real-time interview updates.
Get it on
Google Play
4.9/5 Rating on Store
Node Js · Question Set
Node Master Quiz interview questions for placements and exams.
Questions
21
Included in this set
Subject
Node Js
Explore more sets
Difficulty
Mixed
Level of this set
Go through each question and its explanation. Use this set as a focused practice pack for Node Js.
The `child_process` module allows Node.js to execute system commands and spawn subprocesses.
For complete preparation, combine this set with full subject-wise practice for Node Js. You can also explore other subjects and sets from the links below.
The `events` module allows creation of custom event-driven logic in Node.js.
The event loop manages non-blocking, asynchronous tasks such as I/O and timers.
NPM manages Node.js packages and dependencies.
The `fs` module handles file reading, writing, and streaming in Node.js.
The Cluster module allows you to run multiple Node.js instances to utilize multi-core CPUs.
A Duplex stream can both read and write data, like a TCP socket.
Middleware in Express can modify requests, responses, or call the next middleware function.
CORS allows controlled access to resources from a different origin (domain, port, or protocol).
NODE_ENV is used to specify whether the app is in development, production, or testing mode.
Promises represent a future value — either resolved, rejected, or pending.
package.json stores project information, dependencies, version, and scripts.
DELETE requests are used to remove specified resources from the server.
The `http.createServer()` method creates an HTTP server that listens to requests.
Buffers are used for handling binary data streams efficiently in Node.js.
The `require()` function is used to load built-in, third-party, or user-defined modules in Node.js.
Helmet helps secure Express apps by setting HTTP headers to prevent XSS, clickjacking, etc.
Node.js uses Google Chrome's V8 engine to compile JavaScript directly into native machine code.
Node.js runs on a single thread with an event loop, allowing non-blocking asynchronous operations.
Asynchronous code allows Node.js to handle many I/O operations simultaneously.
REPL is an interactive shell that reads user input, evaluates it, prints output, and loops.