🧪 Node JS MCQ Quiz Hub

Nodejs Mcq Question Set 1

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

1. Which of the following statement is correct?




2. What does the REPL stand for?




3. Which of the following command is used to start a REPL session?




4. In which language is Node.js written?




5. Which of the following command is used to install the Node.js express module?




6. What is Callback?




7. Which of the following extension is used to save the Node.js files?




8. The Node.js modules can be exposed using:




9. Which of the following module is not a built-in node module?




10. Which of the following method of fs module is used to get file information?




11. What does the fs module stand for?




12. Which of the following method of fs module is used to truncate a file?




13. Which of the following template engines can be used with Node.js?




14. Which of the following code print the platform of operating system?




15. Which of the following method is used to return the current working directory of the process?




16. Which of the following statement defines Express?




17. Which of the following is not a benefit of using modules in Express?




18. What is the best practice to do in your code to improve the performance of your application?




19. What is the default scope in the Node.js application?




20. Which of the following engine Node in core?




21. Which of the following statement is used to execute the code of the sample.js file?




22. Which of the following is not a valid language for Node.js?




23. Which of the following shortcut command is used to kill a process in Node.js?




24. How many Node object methods are available?




25. What is the main usage of Node.js terminal (REPL)?




26. Which of the following types of applications can be built using Node.js?




27. Which of the following is used to test if two nodes are equal?




28. Which of the following tool is used to automate the various tasks of the Node.js application?




29. Which of the following areas, Node.js, is not advised to be used?




30. Which of the following route parameter formats are valid?




31. Which of the following module is required to create a web server?




32. Which of the following is the correct syntax to initiate the Node.js File?




33. Which of the following method is used to compare the placement of two nodes in the DOM hierarchy (document)?




34. Which of the following platforms does Node.js support?




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




36. Which of the following Node.js object property is used to return the node immediately before a node?




37. Which of the following method can append specified content to a file?




38. Which of the following is a GUI-based debugging tool for Node.js?




39. What is the use of underscore variable in REPL session in Node.js?




40. The buffer class is a global class that can be accessed without importing a buffer module.




41. Is Node.js multithreaded?




42. Is the process a global object and can be accessed from anywhere?




43. Node.js uses an event-driven, non-blocking I/O model. Is it true?




44. The net.isIP(input) returns 0 for invalid input. Is it true?




45. A stream fires finish event when all data has been flushed to the underlying system. Is it true?




46. A stream fires data event when there is data available to read. Is it true?




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




48. The Node.js modules can be exposed using




49. In Nodejs how node based web servers differ from traditional web servers?




50. Which statement executes the code of sample.js file?