SlideShare a Scribd company logo
NODE JS
INTERVIEW
QUESTION
070709 05090
070709 05090 https://tutorials.ducatindia.com
https://tutorials.ducatindia.com
Q1). Explain Node
JS?


Node JS is open source
platform or cross-platform
which runs as back-end
JavaScript runtime
environment on chrome (V8
engine).
It supports following OS, Z/OS,
Linux, macOS, Microsoft
Windows, open BSD, SmartOS.
Q2). Features of Node
JS?




Main features of Node JS is Productivity, Fast,
Real-Time Application, asynchronous and
Streaming in Node JS.
PRODUCTIVITY
FAST
ASYNCHRONOUS
REAL TIME APPLICATION
STREAMING
Q3). Who developed
Node JS and how to
use REPL in Node
JS?




Node JS was developed in 2009 by
Ryan Dahl.
First if you want to know the version of
node js then write following command as-
“Node –v”. REPL means Read Evaluate Print
Loop. When you type something in prompt
and click to execute then REPL Process the
prompt and give output in prompt. REPL
read the prompt, evaluate it and then print
the result and show the prompt with
specific loop.
Q4). REPL commands in
Node JS?


Ctrl+c = For terminating current
command
Ctrl+c twice = for terminating REPL.
Ctrl+d- for terminating REPL
Tab keys – list of all current
commands.
Break – exit from multiline
expression.
Save with filename – save REPL
session to a file.
Below are some REPL main commands:
Q5). Explain NPM in
Node JS?




NPM is three different things; stand for
node package manager, its Idea about
managing the packages. Let’s suppose
the third party library like lodash. Lodash
is very good library having amazing
manipulation feature used for JavaScript.
Usually what developer does, developer
go to library and download the source
and save to the project. So, JavaScript
has its own package manager or library
for the convenience. So, NPM has
following features-:
Q6). Explain callback in
Node.JS and how it can
be more scalable?




Callback is called when
asynchronous operation has
been completed. Callbacks are
heavily use by Node.js and all
API’S OF Node.js is written to
support callbacks.
Q7). How it can be more
scalable?
Node.js works well for input output
bound but not CPU bound work. For
instance, to read a file if there is a
function then file reading will be started
during that instruction and once input
output is done, callback function is
called.
So, no blocking will be there with
callbacks.
Q8). Explain global
and local of
dependencies of
Node.js




Globally installed packages are
stored in < user-directory>/npm
directory and these dependencies
used in CLI (command line
interface) of any node.js.
NPM will install the dependencies in
local mode by default. Local mode
refers to package installation in
node_modules directory lying in the
folder where node application is
present.
1.
2.
Q9). Explain child process
module and why to use exec,
fork, spawn() method for child
process module?




To create child process module
you have following three ways-:
Spawn: It launches new process with
command child.process
Exec: child_process_exec method
runs command in shell/console and
buffers the output.
Fork:It is special case of spawn to
create child processes command as
child_process
Q10) Explain
Stream Pipe
method in Node.js ?




Stream method denoted as
stream.pipe(), this method used for
taking readable stream and connect it
to writeable stream. Streams in node.js
used to handle asynchronous process.
It also helps in buffer data, it collects
the data as it comes in until you are
ready to use it or until all the data has
arrived from stream.
Thank You!

More Related Content

PDF
Node JS Interview Question PDF By ScholarHat
PPTX
Server Side Web Development Unit 1 of Nodejs.pptx
DOCX
node.js interview questions and answers.
PDF
Node.JS Interview Questions .pdf
PPTX
Introduction to node.js By Ahmed Assaf
PPTX
Introduction to node.js
PDF
Top 50 Node.js Interview Questions and Answers | Edureka
PDF
Node.JS Interview Questions Part-2.pdf
Node JS Interview Question PDF By ScholarHat
Server Side Web Development Unit 1 of Nodejs.pptx
node.js interview questions and answers.
Node.JS Interview Questions .pdf
Introduction to node.js By Ahmed Assaf
Introduction to node.js
Top 50 Node.js Interview Questions and Answers | Edureka
Node.JS Interview Questions Part-2.pdf

Similar to Top 10 Most Important Interview Question of Node JS. (20)

PPTX
Intro to Node.js (v1)
PDF
Nodejs vatsal shah
PDF
Introduction to Node.js
PDF
SWT Tech Sharing: Node.js + Redis
PDF
Top 30 Node.js interview questions
PDF
PDF
Jaap : node, npm & grunt
PPTX
NodeJS guide for beginners
PDF
Node.js Course 1 of 2 - Introduction and first steps
PPTX
Nodejs intro
PDF
(Ebook) 300+ Node.js MCQ Interview Questions and Answers by Manish Salunke IS...
PDF
NodeJS for Beginner
PDF
Node Js Non-blocking or asynchronous Blocking or synchronous.pdf
PPTX
node.js.pptx
PDF
PDF
Node.js for beginner
PDF
PPTX
Introduction to node.js GDD
PPTX
Node js meetup
PPTX
Nodejs Session01
Intro to Node.js (v1)
Nodejs vatsal shah
Introduction to Node.js
SWT Tech Sharing: Node.js + Redis
Top 30 Node.js interview questions
Jaap : node, npm & grunt
NodeJS guide for beginners
Node.js Course 1 of 2 - Introduction and first steps
Nodejs intro
(Ebook) 300+ Node.js MCQ Interview Questions and Answers by Manish Salunke IS...
NodeJS for Beginner
Node Js Non-blocking or asynchronous Blocking or synchronous.pdf
node.js.pptx
Node.js for beginner
Introduction to node.js GDD
Node js meetup
Nodejs Session01
Ad

Recently uploaded (20)

PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Cell Structure & Organelles in detailed.
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Institutional Correction lecture only . . .
PDF
01-Introduction-to-Information-Management.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Insiders guide to clinical Medicine.pdf
PPTX
master seminar digital applications in india
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Microbial disease of the cardiovascular and lymphatic systems
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Cell Structure & Organelles in detailed.
Microbial diseases, their pathogenesis and prophylaxis
Complications of Minimal Access Surgery at WLH
Final Presentation General Medicine 03-08-2024.pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
O7-L3 Supply Chain Operations - ICLT Program
VCE English Exam - Section C Student Revision Booklet
Supply Chain Operations Speaking Notes -ICLT Program
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Institutional Correction lecture only . . .
01-Introduction-to-Information-Management.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
Insiders guide to clinical Medicine.pdf
master seminar digital applications in india
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Ad

Top 10 Most Important Interview Question of Node JS.

  • 1. NODE JS INTERVIEW QUESTION 070709 05090 070709 05090 https://tutorials.ducatindia.com https://tutorials.ducatindia.com
  • 2. Q1). Explain Node JS? Node JS is open source platform or cross-platform which runs as back-end JavaScript runtime environment on chrome (V8 engine). It supports following OS, Z/OS, Linux, macOS, Microsoft Windows, open BSD, SmartOS.
  • 3. Q2). Features of Node JS? Main features of Node JS is Productivity, Fast, Real-Time Application, asynchronous and Streaming in Node JS. PRODUCTIVITY FAST ASYNCHRONOUS REAL TIME APPLICATION STREAMING
  • 4. Q3). Who developed Node JS and how to use REPL in Node JS? Node JS was developed in 2009 by Ryan Dahl. First if you want to know the version of node js then write following command as- “Node –v”. REPL means Read Evaluate Print Loop. When you type something in prompt and click to execute then REPL Process the prompt and give output in prompt. REPL read the prompt, evaluate it and then print the result and show the prompt with specific loop.
  • 5. Q4). REPL commands in Node JS? Ctrl+c = For terminating current command Ctrl+c twice = for terminating REPL. Ctrl+d- for terminating REPL Tab keys – list of all current commands. Break – exit from multiline expression. Save with filename – save REPL session to a file. Below are some REPL main commands:
  • 6. Q5). Explain NPM in Node JS? NPM is three different things; stand for node package manager, its Idea about managing the packages. Let’s suppose the third party library like lodash. Lodash is very good library having amazing manipulation feature used for JavaScript. Usually what developer does, developer go to library and download the source and save to the project. So, JavaScript has its own package manager or library for the convenience. So, NPM has following features-:
  • 7. Q6). Explain callback in Node.JS and how it can be more scalable? Callback is called when asynchronous operation has been completed. Callbacks are heavily use by Node.js and all API’S OF Node.js is written to support callbacks.
  • 8. Q7). How it can be more scalable? Node.js works well for input output bound but not CPU bound work. For instance, to read a file if there is a function then file reading will be started during that instruction and once input output is done, callback function is called. So, no blocking will be there with callbacks.
  • 9. Q8). Explain global and local of dependencies of Node.js Globally installed packages are stored in < user-directory>/npm directory and these dependencies used in CLI (command line interface) of any node.js. NPM will install the dependencies in local mode by default. Local mode refers to package installation in node_modules directory lying in the folder where node application is present. 1. 2.
  • 10. Q9). Explain child process module and why to use exec, fork, spawn() method for child process module? To create child process module you have following three ways-: Spawn: It launches new process with command child.process Exec: child_process_exec method runs command in shell/console and buffers the output. Fork:It is special case of spawn to create child processes command as child_process
  • 11. Q10) Explain Stream Pipe method in Node.js ? Stream method denoted as stream.pipe(), this method used for taking readable stream and connect it to writeable stream. Streams in node.js used to handle asynchronous process. It also helps in buffer data, it collects the data as it comes in until you are ready to use it or until all the data has arrived from stream.