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

Explanation

Node.js is a JavaScript based framework/platform built on Google Chrome's JavaScript V8 Engine.

Answer : A

Explanation

npm stands for Node Package Manager.

Answer : C

Explanation

Writable stream is used for write operation and it can take output of readable stream as input.

Answer : B

Explanation

fs.stat(path, callback) is the method which is used to get information about a file.

Answer : C

Explanation

Node.js global objects are global in nature and they are available in all modules. We do not need to include these objects in our application, rather we can use them directly.

Q 6 - Is console a global object?

A - true

B - false

Answer : A

Explanation

Node.js console is a global object and is used to print different levels of messages to stdout and stderr.

Answer : A

Explanation

net.createServer([options][, connectionListener]) creates a new TCP server. The connectionListener argument is automatically set as a listener for the 'connection' event.

Answer : A

Explanation

Error emmitter is executing its code within run method of a domain in case of internal binding.

Answer : B

Explanation

Express is a minimal and flexible Node.js web application framework that provides a robust set of features to develop web and mobile applications.

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
Advertisements