Question 2. Which of the following statements holds good with respect to Node?
Node being a single thread, and uses async function calls to maintain the concurrency
Every API of Node js are asynchronous
Node thread keeps an event loop and whenever any task get completed, it fires the corresponding event which signals the event listener function to get executed
Question 5. Child processes always have three streams child.stdin, child.stdout, and child.stderr which may be shared with the stdio streams of the parent process.
Question 7. In Nodejs how node based web servers differ from traditional web servers?
Node based server uses a single threaded model and can serve much larger number of requests compared to any traditional server like Apache HTTP Server.
Node based server process request much faster than traditional server.
Answer: Option A. -> Node based server uses a single threaded model and can serve much larger number of requests compared to any traditional server like Apache HTTP Server.
Question 8. The Node.js modules can be exposed using