- Node.js Tutorial
- 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 Useful Resources
- Node.js - Quick Guide
- Node.js - Useful Resources
- Node.js - Dicussion
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 - Which of the following is true about Node.JS?
A - Node.js is a JavaScript based framework/platform built on Google Chrome's JavaScript V8 Engine.
Answer : D
Explanation
Node.js is a very powerful JavaScript based framework/platform built on Google Chrome's JavaScript V8 Engine. It is used to delevop I/O intensive web applications like video streaming sites, single page applications and other web application. Node.js is open source, completely free, and used by thousands of developers around the world.
Q 2 - What is use of Underscore Variable in REPL session?
Answer : B
Explanation
You can use undercore _ to get the last result.
Answer : A
Explanation
True! Node js is a single threaded application but it support concurrency via concept of event and callbacks.
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 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 code prints current directory?
A - console.log('Current directory: ' + process.cwd());
B - console.log('Current directory: ' + console.cwd());
C - console.log('Current directory: ' + process.currenWorkingDirectory());
Answer : A
Explanation
process.cwd() can be used to get the current working directory.
Q 7 - Which of the following code print the total free memory of operating system?
A - console.log('free memory : ' + os.freemem() + " bytes.");
B - console.log('free memory : ' + os.freemem + " bytes.");
C - console.log('free memory : ' + os.getFreeMemory() + " bytes.");
Answer : A
Explanation
os.freemem() returns the free amount of system memory in bytes.
Q 8 - Which of the following module is required for exception handling in Node?
Answer : C
Explanation
Node.js domain module is used to intercept unhandled error. These unhandled error can be intercepted using internal binding or external binding. If errors are not handled at all then they will simply crash the Node application.
Q 9 - What REST stands for?
A - REpresentational State Transfer
B - Resource Efficient State Transfer
Answer : A
Explanation
REST stands for REpresentational State Transfer.
Answer : A
Explanation
A stream fires end event when there is no more data to read.
To Continue Learning Please Login
Login with Google