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

Explanation

Node based server uses a single threaded model and can services much larger number of requests than traditional server like Apache HTTP Server.

Answer : B

Explanation

You can use undercore _ to get the last result.

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

Answer : B

Explanation

os.type() returns the operating system name.

Answer : A

Explanation

os.totalmem() returns the total amount of system memory in bytes.

Q 8 - net.isIP(input) tests if input is an IP address or not.

A - true

B - false

Answer : A

Explanation

net.isIP(input) tests if input is an IP address. Returns 0 for invalid strings, returns 4 for IP version 4 addresses, and returns 6 for IP version 6 addresses.

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