View note:Nodejs-Interview-questions-basic



Questions of this subject!.

QuestionLikes!Dislikes!Answers!
1)Which database is more popularly used with Node.js? -Nodejs

001
2)Is Node.js entirely based on a single-thread?

001
3)Explain callback in Node.js - Nodejs

001
4)Which command can be used to check the version of node

002
5) What will be the output if the outside test2.js is executed

001
6)Is it possible to evaluate expressing in Nodejs?

001
7)Consider the code below written for connection the MYSQL database

000
8)Fill the missing code

001
9)Fill the missing code

001
10)Consider the below code snippet:

001
11)What will be the output if the outside index.js is executed?

001
12)A node application developer is working on an application wherein he has to send a message back to the client from the server.

001
13)Which of the below statement/s are true about Node.js?

001
14)What is a foot blade?

001
15)What is the biggest drawback of Node.js?

101
16)What structure is commonly used in Node.js?

002
17)What is the relationship of Node.js with JavaScript?

002
18)Explain the role of the request process in Node.js.

001
19)What is the command used for node.js to export external libraries?

002
20)What is Event Ring?

001
21)Why do node.js quickly draw from JavaScript programmers?

001
22)Can you specify steps that can be single-tuned in Node.js?

000
23)How does Node.js violate the issue of blocking I / O operations?

001
24)What does it mean to be “block-prevention” in node.js?

001
25)Explain how “Control Flow” controls functional calls.

001
26)Does the node run in windows?

001
27)How To Update A Dependency Using Npm?

001
28)What Is Event Loop?

002
29) Which Module Is Used For Buffer Based Operations?

001
30)Name Some Of The Flags Used In Read/write Operation On Files.

001
31)How Will You Open A File Using Node?

001
32)How Will You Write A File Using Node?

001
33)How Will You Truncate A File Using Node?

001
34)How Will You Create , Read and Delete A Directory?

001
35) What Is The Purpose Of Console Object?

001
36)What Is The Purpose Of __filename Variable?

001
37) How To Check The Already Installed Dependencies Which Are Globally Installed Using Npm?

000
38)How does Node.js work? -Nodejs

001
39)Is Node.js Single-threaded? Explain - Nodejs

001
40)How does Node.js handle concurrency? -Nodejs

001
41)What are some of the most commonly used libraries in Node.js? -Nodejs

001
42)What are the pros and cons of Node.js? -Nodejs

001
43)Guess the output of below code snippet?

000
44)Consider the code snippet

000
45)Consider the code snippet below:

000
46) What Is The Difference Of Using Var And Not Using Var In Repl While Dealing With Variables?

001
47)What Do You Mean By Asynchronous Api?

101
48)What Is A Child_process Module In Node.Js?

001
49)What Is A Control Flow Function?

101
50) Does Node.Js Support Multi-Core Platforms?

001
51)Can You Create HTTP Server In Nodejs?

002
52)How To Load HTML In Node.Js?

001
53)How Many Types Of Streams Are Present In Node.Js?

102
54)How Node.js overcomes the problem of blocking of I/O operations?

101
55)Mention the framework most commonly used in node.js?

001
56)What Is The Local Installation Of Dependencies?

001
57)When To Use Node.Js?

001
58)What is IDEs ?

001
59)What is REPL?

001
60)How To Get Post Data In Node.Js?

002
61)Why to use Buffers instead of binary strings to handle binary data ?

001
62)Name 3 ways to manage events in an asynchronous way?

001
63)what is process.nextTick() and setImmediate()?

001
64)Rewrite the code sample without try/catch block

000
65)What is LTS releases of Node.js why should you care?

001
66)what is 'app' and 'server'?

002
67)What are the timing features of Node.js?

001
68)Explain what is Reactor Pattern in Node.js?

001
69) Explain about config file separation for dev and prod environments

001
70)Why is consistent style important and what tools can be used to assure it?

001
71)What is the difference between AngularJS and Node.js?

001
72)What are Globals in Node.js?

003
73)What are exit codes in Node.js?

003
74) What are “streams” in Node.js?

004
75) What is the difference between Node.js and Ajax?

003
76) Explain chaining in Node.js.

001
77)Which is the first argument typically passed to a Node.js callback handler?

001
78)What are the functionalities of NPM in Node.js?

001
79) Name the types of API functions in Node.js.

001
80)What is callback hell in Node.js?

002
81)How do you prevent/fix callback hell?

001
82) Explain callback in Node.js.

003
83)Why is Node.js Single-threaded?

001
84)what is NPM?

001
85)How else can the JavaScript code below be written using Node.Js to produce the same output?

000
86)What is Node.js?

001
87)What are the features of Node.js ?

001
88)What are the modules in Node.js? -Nodejs

001
89)Why is Node.js preferred over other backend technologies like Java and PHP? -Nodejs

001
90)What is the purpose of the module .Exports? -Nodejs

001
91)What are the advantages of using promises instead of callbacks? -Nodejs

001
92)How would you define the term I/O? -Nodejs

001
93)How do you install, update, and delete a dependency? -Nodejs

001
94)How do you create a simple server in Node.js that returns Hello World? -Nodejs

001
95)What is an EventEmitter in Node.js? -Nodejs

001
96)What are the two types of API functions in Node.js? -Nodejs

001
97)Differentiate between process.nextTick() and setImmediate()? -Nodejs

001
98)What is the Express.js package? -Nodejs

001
99)What is the package.json file? -Nodejs

001
100)How would you use a URL module in Node.js? -Nodejs

001
101)What is the command used to import external libraries? -Nodejs

001
102)What is NPM? -Nodejs

001
103)How is Node.js most frequently used? -Nodejs

001
104)Explain how does Node.js work?

001
105)What is an EventEmitter in Node.js?

001
106)What are the two types of API functions in Node.js?

001
107)What is REPL in Node.js? -Nodejs

001
108)When to use promises async await and settime out in nodejs? - nodejs

001
109)what all are the differences between setImmediate, setTimeout and setIntervel In nodejs

002
110)How the concurrency in nodejs is managed?

001
111)What is a call back function and what is a call back hell -Nodejs

001
112)Explain Some of the built in modules in nodejs?

001
113)How to do unit testing in nodejs?

002
114)Can I use multiple catch bloack in nodejs? -Nodejs

003
115)Explain the difference between frontend and backend development? -Nodejs

001
116)What is the difference between Angular and Node.js? -Nodejs

001
117)What is chaining process in Node.js?

001
118)What is Node.js? Where can you use it? -Nodejs

001
119)What is the control flow function? -Nodejs

001
120)What are streams in Node.js? -Nodejs

001
121)How do you create a simple Express.js application? -Nodejs

001
122)What is an Event Loop in Node.js?

001
123)What are asynchronous and non-blocking APIs in Node.js. -Nodejs

001
124)What does event-driven programming mean? -Nodejs

001
125)What is an Event Loop in Node.js? -Nodejs

001
126)Explain Error Handling approaches in Nodejs?

001
127)What are the pros and cons of Node.js?

001
128)Which database is more popularly used with Node.js?

001
129) What are some of the most commonly used libraries in Node.js?

001
130)If Node.js is single-threaded, then how does it handle concurrency?

001
131)Explain callback in Node.js.

002
132) What is NPM? - Nodejs

002
133)Why use Node.js? -Nodejs

001
134)How to Implement Memcached in Nodejs?

002
135) What does emitter do and what is dispatcher?

001
136) What is Node.js Process Model?

001
137)When should you npm and when yarn?(node.js)

001
138)what is nodejs

800
139)what is nodejs?

401