Friday, 15 May 2020

AsCEnD Node JS

Node JS Fundamentals Assessment


Q1. What is Node.JS?

Answer: Node.js is a JavaScript based framework/platform built on Google Chrome's JavaScript V8 Engine.

Q2. Which of following command starts a REPL session?

Answer: $ node

Q3. Which of the following module is required for exception handling in Node?

Answer: domain module

Q4. Each type of Stream is an EventEmitter

Answer: TRUE

Q5. Which method of fs module is used to close a file?

Answer: fs.close(fd, callback)

Q6. Which of the following is true about readable stream?

Answer: Both

Q7. What is use of Underscore Variable in REPL session?

Answer: to get the last result

Q8. Which of the following is not a valid HTTP method?

Answer: header

Q9. What is Callback?

Answer: Callback is an asynchronous equivalent for a function

Q10. Which of the following command will show all the modules installed globally

Answer: $ npm ls -g

Q11. Which of the following is true about RESTful web services?

Answer: Both of the above

Q12. Why code written in Node JS is pretty fast although being written in JavaScript

Answer: Being built on Google Chrome's V8 JavaScript Engine

Q13. How Node based web servers are different from traditional web servers?

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

Q14. A stream fires end event when there is no more data to read

Answer: TRUE

Q15. Which of the following statement is valid to use a Node module http in a Node based applicaban?

Answer: var http = require ("http')

Q16. Node js is a single threaded application but supports concurrency

Answer: TRUE

Q17. Which of the following is true about __filename global object?

Answer: Both

Q18. Which of the following is true about File I/O in Node applications?

Answer: Both

Q19. Which of the following is true about EventEmitter emit property?

Answer: emit property is used to fire an event

Q20. REPL stands for ?

Answer: Read Eval Print Loop

Q21. All APIs of Node JS are ?

Answer: Asynchronous

Q22. Which of the following is true about global objects in Node applications?

Answer: Both

Q23. In which of the following areas, Node.js is perfect to usd

Answer: All of these options

Q24. Which of the following is true about package json?

Answer: All of these options

Q25. Is console a global object?

Answer: TRUE

Q26. Which of the following is true about Node JS?

Answer: All of these options

Q27. Which of the following is true about _dirname global object?

Answer: The __dirname represents the name of the directory that the currently executing scnpt resides in

Q28. Which of the following module is required for operating system specific operation?

Answer: None of these options

Q29. In which of the following areas, Node.js is not advised to be used?

Answer: CPU intensive applications

Q30. By default, npm installs any dependency in the global mode.

Answer: FALSE

1 comment:


  1. nice informative post. Thanks you for sharing.
    <a href="https://www.sovereignconsult.com/blog/nodejs-development-features-and-advantages/>NodeJS Development</a>

    ReplyDelete