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

REPL stands for Read Eval Print Loop and it represents a computer environment like a window console or Unix/Linux shell where a command is entered and system responds with an output in interactive mode.

Answer : B

Explanation

You can use undercore _ to get the last result.

Answer : C

Explanation

Readable stream is used for read operation and its output can be input to a writable stream.

Answer : D

Explanation

fs.read(fd, buffer, offset, length, position, callback) is the method which is used to read 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 : A

Explanation

process.cwd() can be used to get the current working directory.

Q 7 - Which of the following module is required for network specific operations?

A - os module

B - fs module

C - net module

D - None of the above.

Answer : C

Explanation

Node.js net module is used to create both servers and clients. This module provides an aynchronous network wrapper.

Answer : A

Explanation

net.connect(options[, connectionListener]) is a factory method, which returns a new 'net.Socket' and connects to the supplied address and port and can be used to create a client.

Answer : A

Explanation

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

Q 10 - Duplex stream can be used for both read and write operation.

A - true

B - false

Answer : A

Explanation

Duplex stream can be used for both read and write operation.


nodejs_questions_answers.htm

Advertisements