Question 1
What makes Node.js ideal for handling concurrent requests?
Multi-threading model
Blocking I/O operations
Non-blocking, event-driven model
In-built database
Question 2
How do you start the Node.js REPL environment?
run repl
start nodejs
node
npm start
Question 3
Which of the following is NOT a section inside package.json?
dependencies
devDependencies
repositories
engines
Question 4
Which of the following is used to start a Node.js HTTP server?
http.create()
http.listen()
http.createServer()
server.http()
Question 5
Which of these modules is NOT a core Node.js module?
fs
path
express
http
Question 6
What is the default port often used when creating a Node.js HTTP server in examples?
80
443
3000
8080
Question 7
Which of the following commands exits the Node.js REPL?
.exit
exit()
stop
quit
Question 8
Which built-in Node.js module is used for working with file operations?
path
fs
os
util
Question 9
What happens if "main" is missing in package.json?
Node.js won’t run the project
It defaults to index.js in the root folder
It defaults to app.js
An error is thrown during npm start
Question 10
If you define "type": "module" in package.json, what changes in Node.js?
Node.js uses CommonJS by default
Node.js treats .js files as ES modules
Node.js requires .mjs extension
Node.js blocks import/export
There are 10 questions to complete.