Question 1. What is Node.js ?
A server-side JavaScript runtime environment
A front-end framework
A database management system
A programming language
Question 2. Which of the following is not a core module in Node.js ?
fs
http
net
mongo
Question 3. What is the default package manager for Node.js ?
npm
yarn
bower
gulp
Question 4. Which of the following methods is used to import modules in Node.js ?
require()
import ()
include()
import_module()
Question 5. Which module is commonly used for creating a web server in Node.js ?
http
fs
url
path
Question 6. Which keyword is used to create a new instance of an object in Node.js ?
new
instance
create
object
Question 7. Which event is emitted when an error occurs in Node.js ?
error
exception
fail
crash
Question 8. Which module is used for working with file operations in Node.js ?
fs
http
net
path
Question 9. What is the purpose of the package.json file in Node.js ?
To define project dependencies and configurations
To store JavaScript code
To define the HTML structure of a webpage
To define database schemas
Question 10. Which of the following is a non-blocking I/O model used in Node.js ?
Synchronous I/O
Asynchronous I/O
Multi-threaded I/O
Blocking I/O