🧪 Node JS MCQ Quiz Hub

Nodejs Mcq Question Set 2

Choose a topic to test your knowledge and improve your Node JS skills

1. What are the key features of Node.js?




2. How can we check the current version of NPM?




3. What is the advantage of using node.js?




4. Why a Node.JS code is pretty fast although being written in JavaScript?




5. What is REPL in Node.js?




6. Which module is used to serve static resources in Node.js?




7. What should you do in your code to improve your application's performance?




8. Is console a global object?




9. To install Node.js express module




10. Which of the followings are valid languages for Node.js?




11. Which of the following tool automates various tasks of Node.js application?




12. In Node.js APIs of Node.JS are which of the following?




13. Which of the following class is used to create and consume custom events in Node.js?




14. Node.js supports which of the following platform?




15. Which of following are a valid form of route path?




16. Which of the following statements holds good with respect to Node?




17. In Nodejs what is use of underscore variable in REPL session?




18. Which statement is valid in using a Node module fs in a Node based application?




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




20. Which of the following is true about Node.js?




21. Which of the following is false?




22. Node.js files must be initiated in the?




23. Syntax to Initiate the Node.js File is?




24. Which keyword is used to make properties and methods available outside the module file?




25. Which method appends specified content to a file.




26. Which of the following command will show version of Node?




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




28. The URL module splits up a web address into readable parts.




29. Node.js uses _______ programming.




30. Node.js files have extension?




31. Node.js runs?




32. To include a module, use the _______ function with the name of the module.




33. Node.js has a built-in module called?




34. Which method to create an HTTP server?




35. Which of the following is true about process global object?




36. A package in Node.js contains all the files you need for a module.




37. The fs.read() method is used to read files on your computer.




38. Which statement execute the code of sample.js file?




39. How can we create instance of http module ?




40. The $ npm ls -g statement is used to list down all the locally installed module?




41. How can we check the cujrrent version of NPM?




42. The $ npm ls statement is used to list down all the locally installed module?




43. package.json is is used to define the properties of a package?




44. What would be the output of the below code ? var http = require("http"); http.createServer(function (request, response) { response.writeHead(200, {'Content-Type': 'text/plain'}); response.end('Welcome to the nodejs '); }).listen(8083); console.log('Server running at http://127.0.0.1:8083/');




45. What would be the output of the below code ? $ node > var y = 10




46. Find output of the following program ? $ node > 15 + ( 2 * 4 ) - 8




47. Guess the output of the following program ? $ node > var k=10 undefined > y=10 10 > k+y




48. What would be the output of the below code ? $ node > y = 10