NodeJS

NodeJS

Assessment

Quiz

Computers

University

Hard

Created by

Shivam Sultaniya

FREE Resource

Student preview

quiz-placeholder

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Node.js primarily used for?

Front-end development

Back-end development

Mobile app development

Database management

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following modules is built into Node.js?

express

react

http

mongoose

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement best describes Node.js?

Node.js is a JavaScript library for building user interfaces.

Node.js is a runtime environment for executing JavaScript code on the client-side.

Node.js is a runtime environment for executing JavaScript code on the server-side.

Node.js is a database management system.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the default package manager for Node.js?

yarn

bower

npm

pip

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the command to initialize a new Node.js project and create a package.json file?

npm init

npm run dev

npm start

npm install

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a Node.js REPL command to exit the REPL environment?

Ctrl + c

ctrl + e

.exit

.quit

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'package.json' file in a Node.js project?

To specify the version of Node.js to be used

To define the project’s metadata, dependencies, and scripts

To store environment variables

To list all the files in the project