- Node.js - Home
- Node.js - Introduction
- Node.js - Environment Setup
- Node.js - First Application
- Node.js - REPL Terminal
- Node.js - Command Line Options
- Node.js - Package Manager (NPM)
- Node.js - Callbacks Concept
- Node.js - Upload Files
- Node.js - Send an Email
- Node.js - Events
- Node.js - Event Loop
- Node.js - Event Emitter
- Node.js - Debugger
- Node.js - Global Objects
- Node.js - Console
- Node.js - Process
- Node.js - Scaling Application
- Node.js - Packaging
- Node.js - Express Framework
- Node.js - RESTFul API
- Node.js - Buffers
- Node.js - Streams
- Node.js - File System
- Node.js MySQL
- Node.js - MySQL Get Started
- Node.js - MySQL Create Database
- Node.js - MySQL Create Table
- Node.js - MySQL Insert Into
- Node.js - MySQL Select From
- Node.js - MySQL Where
- Node.js - MySQL Order By
- Node.js - MySQL Delete
- Node.js - MySQL Update
- Node.js - MySQL Join
- Node.js MongoDB
- Node.js - MongoDB Get Started
- Node.js - MongoDB Create Database
- Node.js - MongoDB Create Collection
- Node.js - MongoDB Insert
- Node.js - MongoDB Find
- Node.js - MongoDB Query
- Node.js - MongoDB Sort
- Node.js - MongoDB Delete
- Node.js - MongoDB Update
- Node.js - MongoDB Limit
- Node.js - MongoDB Join
- Node.js Modules
- Node.js - Modules
- Node.js - Built-in Modules
- Node.js - Utility Modules
- Node.js - Web Module
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 1In which of the following areas, Node.js is not advised to be used?
B - JSON APIs based Applications
Answer : C
Explanation
It is not advisable to use Node.js for CPU intensive applications.
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.on property?
A - on property is used to fire event.
B - on property is used to bind a function with the event.
Answer : B
Explanation
on property is used to bind a function with the event.
Q 4 - Which of the following is true about File I/O in Node applications?
A - Node implements File I/O using simple wrappers around standard POSIX functions.
B - Node File System (fs) module should be imported for File I/O opearations.
Answer : C
Explanation
Node implements File I/O using simple wrappers around standard POSIX functions. Node File System (fs) module should be imported for File I/O opearations.
Q 5 - Which method of fs module is used to delete a file?
A - fs.delete(fd, len, callback)
Answer : C
Explanation
fs.unlink(path, callback) is the method which is used to delete a file.
Q 6 - Which of the following is true about process global object?
A - The process object is an instance of EventEmitter.
Answer : D
Explanation
The process object is an instance of EventEmitter and emits the above mentioned events.
Q 7 - Which of the following module is required for path specific operations?
Answer : C
Explanation
Node.js path module is used for handling and transforming file paths.
Q 8 - Which of the following module is required for DNS specific operations?
Answer : A
Explanation
Node.js dns module is used to do actual DNS lookup as well as to use underlying operating system name resolution functionalities.
Q 9 - What REST stands for?
A - REpresentational State Transfer
B - Resource Efficient State Transfer
Answer : A
Explanation
REST stands for REpresentational State Transfer.
Q 10 - A stream fires finish event when all data has been flushed to underlying system.
Answer : A
Explanation
A stream fires finish event when all data has been flushed to underlying system.