Node.js Basics

🏷️ Basic
🆓 100% Free Certificate 10 Questions 300s 43 Views

This test evaluates your foundational knowledge of Node.js, including core modules, npm, and building basic HTTP servers. To build your foundation, read the Node.js Official Learning Path, explore the W3Schools Node.js Guide, and watch this beginner-friendly Node.js Crash Course on YouTube.

1 Which of the following is NOT a built-in module in Node.js?
2 What is the correct way to include the File System module in Node.js?
3 Which method is used to create a simple HTTP server in Node.js?
4 What is the default port number for a local Node.js server?
5 Which global object in Node.js provides information about the current module?
6 What does the require() function return?
7 Which method is used to read environment variables in Node.js?
8 What is the purpose of the package.json file?
9 Which command is used to install all dependencies listed in package.json?
10 What is the correct way to export multiple functions from a module?