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

Explanation

Being built on Google Chrome's V8 JavaScript Engine, Node.js library is very fast in code execution.

Answer : A

Explanation

Callback is an asynchronous equivalent for a function.

Answer : C

Explanation

emit property is used to fire an event.

Answer : A

Explanation

fs.open(path, flags[, mode], callback) is the method which is used to open a file.

Answer : B

Explanation

fs.rmdir(path, callback) is the method which is used to remove a directory.

Q 6 - Which of the following module is required for operating system specific operations?

A - os module

B - fs module

C - net module

D - None of the above.

Answer : A

Explanation

Node.js os module provides a few basic operating-system related utility functions.

Answer : A

Explanation

path.normalize(p) normalizes a string path, taking care of '..' and '.' parts.

Answer : A

Explanation

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

Answer : A

Explanation

http.request(options, callback) method can be used to make a request a web server.

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