- World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.

Get it now !!
Send your Resume to 6000 Companies
Node.JS Interview Questions & Answers - Learning Mode

Node.JS Interview Questions & Answers - Learning Mode

In software development, Node.js is an open-source, cross-platform runtime environment for developing server-side Web applications. Although Node.js is not a JavaScript framework, many of its basic modules are written in JavaScript, and developers can write new modules in JavaScript. The runtime environment interprets JavaScript using Google's V8 JavaScript engine.

Try Node.JS Interview Questions & Answers - Exam Mode

1 2 3 Next

Sort By : Latest First | Oldest First | By Rating

Node.JS Interview Questions & Answers - Learning Mode
Try Node.JS Interview Questions & Answers - Exam Mode
Question: What is meant by a schema? Is it a set of rules which is copied and renamed, but never worked on that?

Answer: Below are the useful properties of process ?
exitCode Source:
Question: Explain Stub?

Answer: Stub is a small program, which substitutes for a longer program, possibly to be loaded later and that is located remotely. Stubs are functions/programs that simulate the behaviors of components/modules. Source:
Question: What are ?Streams? in Node.JS?

Answer: ?Streams? are objects which will let you read the data from source and write data to destination as a continuous process. Source:
Question: Can CRM and ITS server maintained in one system?

Answer: NodeJS is not appropriate to use in scenarios where single-threaded calculations are going to be the holdup. Source:
Question: Why to use exec method for Child process module?

Answer: ?exec? method runs a command in a shell and buffers the output. Below is the command ?
child_process.exec(command[, options], callback) Source:
Question: When both labor, Machine categories exist how does process time is calculated in WC?

Answer: NPM stands for Node Package Manager (npm) and there are two functionalities which NPM takes care of mainly and they are ?

Online repositories for node.js modules or packages, which can be searched on
Dependency Management, Version Management and command line utility for installing Node.js packages. Source:
Question: Explain "Buffer class" in Node.JS?

Answer: It is a global class which can be accessed in an application without importing buffer modules. Source:
Question: Explain variables in Node.js?

Answer: Variables are used to store values and print later like any conventional scripts. If ?var? keyword is used then value is stored in variable. You can print the value in the variable using - console.log().

$ node
> a = 30
> var b = 50
> a + b
> console.log("Hi")
undefined Source:
Question: Explain Child process module?

Answer: Child process module has following three major ways to create child processes:?

spawn - child_process.spawn launches a new process with a given command.
exec - child_process.exec method runs a command in a shell/console and buffers the output.
fork - The child_process.fork method is a special case of the spawn() to create child processes. Source:
Question: Why to use ?SetTimeout? in Node.JS?

Answer: This is the global function and it is used to run the callback after some milliseconds.

Syntax of this method ?

setTimeout(callbackmethod, millisecs) Source:
Question: What is the latest version of Node.js available?

Answer: Node.js v6 is the latest version of Node.js available and ready for use!

This new major version of Node.js delivers significant improvements in performance, reliability, usability and security. Module loading is nearly four times faster than in Node.js v4, tests and documentation have seen significant improvements, usability of the Buffer and File System APIs have been improved, and Node.js now supports 93% of ES6 language features, thanks to V8 version 5.0. Source:
Question: List out some REPL commands in Node.js?

Answer: Below are the list of REPL commands ?

Ctrl + c - For terminating the current command.
Ctrl + c twice ? For terminating REPL.
Ctrl + d - For terminating REPL.
Tab Keys - list of all the current commands.
.break - exit from multiline expression.
.save with filename - save REPL session to a file. Source:
Question: How you can update NPM to new version in Node.js?

Answer: Below commands can be used for updating NPM to new version ?

$ sudo npm install npm -g
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
npm@2.7.1 /usr/lib/node_modules/npm Source:
Question: Who developed Node.js?

Answer: Node.js was developed in 2009 by Ryan Dahl. Source:
Question: Explain ? ?console.log([data][, ...])? statement in Node.JS ?

Answer: This statement is used for printing to ?stdout? with newline and this function takes multiple arguments as ?printf()?. Source:
Question: Why to use ?__filename? in Node.JS?

Answer: ?__filename? is used to represent the filename of the code which is being executed. It used to resolve the absolute path of file. Below is the sample code for the same ?

Console.log(__filename); Source:
Question: What are scales?

Answer: Node.js is a very powerful JavaScript based platform or framework which is built on Google Chrome's JavaScript V8 Engine. Source:
Question: Why to use ?ClearTimeout? in Node.JS?

Answer: This is the global function and it is used to stop a timer which was created during ?settimeout()?. Source:
Question: What is report variant for off cycle activities, what do we do in this step?

Answer: ?Path? module will be used for transforming and handling file paths. Below is the syntax of path module ?

var mypath = require("path") Source:
Question: What are the differences between readUIntBE and writeIntBE?

Answer: readUIntBE - It?s a generalized version of all numeric read methods, which supports up to 48 bits accuracy. Setting noAssert to "true" to skip the validation.
writeIntBE - This will write the value to the buffer at the specified byteLength and offset and it supports upto 48 bits of accuracy. Source:

1 2 3 Next

India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.023438 Seconds