Mindtree – Node JS Interview Questions
Here is the list of Node JS Interview Questions which are recently asked in Mindtree company. These questions are included for both Freshers and Experienced professionals. Our Node JS Training has Answered all the below Questions.
1. What is Node js ?
2. Explain CLI in Node.js?
Command-line interfaces (CLIs) built in Node.js allow to automate repetitive tasks while leveraging the vast Node.js ecosystem and package managers like npm and yarn can be easily distributed and consumed across multiple platforms.
3. In which Language Node Js is written ?
4. Who is the author of Node Js ?
The author of Node.js isRyan Dahl
6. Explain V8 Engine ?
The V-8 operates like any other gasoline-powered four-stroke engine. The cylinder pulls in air and fuel, compresses the air and fuel, a spark plug ignites the mixture to create power and forces the piston downward, and finally, the piston pushes exhaust gases out as it travels back up.
7. Explain ECMAScript ?
8. How can you check the installed version of Node Js ?
To see if Node is installed, open the Windows Command Prompt, Powershell or a similar command line tool, and type node -v . This should print the version number so you'll see something like this v0. 10.35.
9. Explain What is NPM ?
10. Explain Modules in Node Js ?
In Node.js, Modules are the blocks of encapsulated code that communicates with an external application on the basis of their related functionality. Modules can be a single file or a collection of multiples files/folders.
11. What are CommonJs Modules ?
Common JS modules contain two primary parts: a free variable named exports, which contains the objects a module wishes to make available to other modules, and a require function that modules can use to import the exports of other modules.
12. For what require() is used in Node Js ?
13. Explain module.exports in Node Js ?
14. Is Node Js Single-threaded ?
15. What are events ?
Every action on a computer is an event. E.g.: when a connection is made or a file is opened.Node.js has a built-in module, called "Events", where can create-, fire-, and listen for- on the own events.To include the built-in Events module use the require() method.
16. Explain event loop in Node Js ?
Event loop is an endless loop, which waits for tasks, executes them and then sleeps until it receives more tasks. The event loop executes tasks from the event queue only when the call stack is empty. The event loop allows us to use callbacks and promises.
17. How to create a simple server in Node js that returns Hello World ?
createServer() method turns the computer into an HTTP server. The httpcreateServer() method creates an HTTP Server object. The HTTP Server object can listen to ports on the computer and execute a function, a requestListener, each time a request is made.
18. Difference between cluster and child_process modules?
With the cluster module, the creation and sharing of child processes and several parts become easy. In a single thread, the individual instance of node. A developer can access Operating System functionalities by the child_process module, this happens by running any system command inside a child process.
19. How to stop master process without suspending all of its child processes?
Upstart is a process management system with which help to stop the master process.
20. What does emitter do and what is dispatcher?
An Emitter class can be used to raise and handle custom events. It facilitates interaction between objects in Node. A Dispatcher is a service object that is used to ensure that the Event is passed to all relevant Listeners.
TOP MNC's NODE JS INTERVIEW QUESTIONS & ANSWERS
Here we listed all Node JS Interview Questions and Answers which are asked in Top MNCs. Periodically we update this page with recently asked Questions, please do visit our page often and be updated in Node JS.
To become a Node JS Certified professional and join in your dream company, Enroll now for our Best Node JS Training. We help you to crack any level of Node JS Interviews and We offering Node JS Training with 100% Placements.