
- Node.js Tutorial
- Node.js - Home
- Node.js - Introduction
- Node.js - Environment Setup
- Node.js - First Application
- Node.js - REPL Terminal
- Node.js - Package Manager (NPM)
- Node.js - Callbacks Concept
- Node.js - Event Loop
- Node.js - Event Emitter
- Node.js - Buffers
- Node.js - Streams
- Node.js - File System
- Node.js - Global Objects
- Node.js - Utility Modules
- Node.js - Web Module
- Node.js - Express Framework
- Node.js - RESTFul API
- Node.js - Scaling Application
- Node.js - Packaging
- Node.js - Built-in Modules
- Node.js Useful Resources
- Node.js - Quick Guide
- Node.js - Useful Resources
- Node.js - Dicussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Node.js Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to Node.js Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Q 1 - How Node based web servers are different from traditional web servers?
A - Node based server process request much faster than traditional server.
Answer : B
Explanation
Node based server uses a single threaded model and can services much larger number of requests than traditional server like Apache HTTP Server.
Q 2 -What npm stands for?
Answer : A
Explanation
npm stands for Node Package Manager.
Q 3 - Which of the following is true about EventEmitter.emit property?
A - emit property is used to locate an event handler.
B - emit property is used to bind a function with the event.
Answer : C
Explanation
emit property is used to fire an event.
Q 4 - Which of the following is true about fs module of Node?
A - Every method in fs module have synchronous as well as asynchronous form.
Answer : C
Explanation
Every method in fs module have synchronous as well as asynchronous form. Asynchronous methods of fs module take last parameter as completion function callback and first parameter of the callback function as error.
Q 5 - Which of the following is true about global objects in Node applications?
A - Global objects are global in nature and they are available in all modules.
Answer : C
Explanation
Node.js global objects are global in nature and they are available in all modules. We do not need to include these objects in our application, rather we can use them directly.
Q 6 - Which of the following code prints process version?
A - console.log('Current version: ' + process.version());
B - console.log('Current version: ' + process.version);
C - console.log('Current version: ' + process.getVersion());
Answer : B
Explanation
process.version can be used to get the current process version.
Q 7 - Which of the following module is required for network specific operations?
Answer : C
Explanation
Node.js net module is used to create both servers and clients. This module provides an aynchronous network wrapper.
Q 8 - Which of the following method resolves an ip address to an array of hostnames?
B - dns.resolve(hostname[, rrtype], callback)
Answer : A
Explanation
dns.reverse(ip, callback) resolves an ip address to an array of hostnames.
Q 9 - Which of the following module is required to create a child process?
Answer : B
Explanation
Node provides child_process module which provides ways to create child process.
Q 10 - Which of the following is true about RESTful webservices?
A - Webservices based on REST Architecture are known as RESTful web services.
B - Webservices uses HTTP methods to implement the concept of REST architecture.
Answer : C
Explanation
Webservices based on REST Architecture are known as RESTful web services. These webservices uses HTTP methods to implement the concept of REST architecture.