Node.js Online Quiz


Advertisements

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.

Q 2 - Which of the following command will show version of Node?

A - $ npm --version

B - $ node --version

C - $ npm getVersion

D - $ node getVersion

Answer : B

Explanation

Executing $ node --version command will show the version of Node instance.

Answer : C

Explanation

emit property is used to fire an event.

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 : A

Explanation

The process object is a global object and can be accessed from anywhere.

Q 7 - Which of the following is the correct way to get an absolute path?

A - os.resolve('main.js')

B - path.resolve('main.js')

C - fs.resolve('main.js')

D - None of the above.

Answer : B

Explanation

path.resolve([from ...], to) resolves to an absolute path.

Q 8 - Which of the following module is required for DNS specific operations?

A - dns module

B - web module

C - net module

D - None of the above.

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 - Can we create child processes in Node applications.

A - true

B - false

Answer : A

Explanation

Node facilitates creation of child processes to leverage parallel processing on multi-core cpu based systems.

Q 10 - A stream fires error event when there is any error receiving or writing data.

A - false

B - true

Answer : B

Explanation

A stream fires error event when there is any error receiving or writing data.

nodejs_questions_answers.htm

Useful Video Courses


Video

Serverless Development with AWS Lambda and NodeJS

44 Lectures 7.5 hours

Eduonix Learning Solutions

Video

Learn Nodejs by building 10 projects

88 Lectures 17 hours

Eduonix Learning Solutions

Video

Unit Testing and Test Driven Development in NodeJS

32 Lectures 1.5 hours

Richard Wells

Video

Nodejs Crash Course : For Backend Development

8 Lectures 33 mins

Anant Rungta

Video

Learn NodeJS Step by Step

9 Lectures 2.5 hours

SHIVPRASAD KOIRALA

Video

Master NodeJs : A Practical Approach To Node JS

Most Popular

97 Lectures 6 hours

Skillbakerystudios

Advertisements