Node.js Fundamentals

See how well you know Node.js runtime and core modules.

1. What is the primary role of the Node.js event loop?
2. Which of the following are core features of Node.js?
3. Node.js runs in the browser environment by default.
4. What does 'npm' stand for?
5. Which built-in module is used for file system operations in Node.js by default?
6. Which are valid ways to export a module in CommonJS (Node.js default module system)?
7. The 'require' function in Node.js loads modules synchronously.
8. What global object in Node.js is similar to the browser's 'window' object?
9. What does the __dirname variable return in a Node.js script?
10. Which 'fs' module methods are asynchronous (non-blocking)?
11. Node.js is built on the V8 JavaScript engine developed by Google.
12. What function schedules a callback to run after a specified delay (in milliseconds)?
13. Which method starts an HTTP server listening for incoming requests?
14. Which are global objects in Node.js?
15. ES6 modules (import/export) are enabled by default in Node.js without configuration.
Answered 0 of 0 — 0 correct