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

Explanation

It is not advisable to use Node.js for CPU intensive applications.

Answer : A

Explanation

npm stands for Node Package Manager.

Answer : B

Explanation

on property is used to bind a function with the event.

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.

Answer : C

Explanation

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

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?

A - os module

B - fs module

C - path module

D - None of the above.

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?

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.

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.

A - true

B - false

Answer : A

Explanation

A stream fires finish event when all data has been flushed to underlying system.

nodejs_questions_answers.htm
Advertisements