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.
Q 1 - How Node based web servers are different from traditional web servers?
Node based server uses a single threaded model and can services much larger number of requests than traditional server like Apache HTTP Server.
Q 2 - What is use of Underscore Variable in REPL session?
You can use undercore _ to get the last result.
Q 3 - Which of the following is true about EventEmitter.emit property?
emit property is used to fire an event.
Q 4 - Which method of fs module is used to open a file?
fs.open(path, flags[, mode], callback) is the method which is used to open a file.
Q 5 - Which of the following is true about global objects in Node applications?
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 - Which of the following code print the name of operating system?
os.type() returns the operating system name.
Q 7 - Which of the following code print the total system memory of operating system?
os.totalmem() returns the total amount of system memory in bytes.
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.
Q 9 - What REST stands for?
REST stands for REpresentational State Transfer.
A stream fires end event when there is no more data to read.