• Node.js Video Tutorials

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.

Questions and Answers

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.

Answer : B

Explanation

You can use undercore _ to get the last result.

Q 3 - Node js is a single threaded application but supports concurrency.

A - true

B - false

Answer : A

Explanation

True! Node js is a single threaded application but it support concurrency via concept of event and callbacks.

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.

Answer : C

Explanation

fs.unlink(path, callback) is the method which is used to delete a file.

Answer : A

Explanation

process.cwd() can be used to get the current working directory.

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?

A - web module

B - net module

C - domain module

D - error module

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.

Answer : A

Explanation

REST stands for REpresentational State Transfer.

Q 10 - A stream fires end event when there is no more data to read.

A - true

B - false

Answer : A

Explanation

A stream fires end event when there is no more data to read.

nodejs_questions_answers.htm
Advertisements