wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

node js

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is the first step to install Node JS on your computer?

a)

Download the Node JS installer from the official website

b)

Wait for a physical copy of Node JS to be delivered to your house

c)

Search for Node JS on social media

d)

Ask a friend to email you the Node JS installer

2.

How do you check if Node JS is successfully installed on your computer?

a)

Type 'node -v' in the terminal or command prompt.

b)

Check the Node JS website for a confirmation message.

c)

Type 'node --version' in the terminal or command prompt.

d)

Click on the Node JS icon on your desktop.

3.

What is npm used for in Node JS?

a)

Creating user interfaces

b)

Generating random numbers

c)

Playing audio files

d)

Managing and installing packages and dependencies

4.

How do you install a package using npm?

a)

npm add

b)

npm download

c)

npm get

d)

npm install

5.

What is the environment setup required for Node JS?

a)

Configuring Java and PHP

b)

Installing Node.js and npm

c)

Setting up Python and Ruby

d)

Downloading Node.js and yarn

6.

How do you create a new Node JS project?

a)

node create

b)

js new

c)

npm start

d)

npm init

7.

What is the command line interface used for in Node JS?

a)

Managing databases

b)

Designing user interfaces

c)

Creating new web pages

d)

Running JavaScript code outside of a web browser

8.

How do you run a Node JS file using the command line?

a)

start filename.js

b)

run filename.js

c)

execute filename.js

d)

node filename.js

9.

What are some examples of events in Node JS?

a)

http, fs, stream

b)

mysql, mongodb, postgresql

c)

html, css, javascript

d)

react, angular, vue

10.

How do you handle data input/output in Node JS?

a)

Using the 'express' module for file operations

b)

Using the 'math' module for data input/output

c)

Using the built-in modules 'fs' for file operations and 'http' or 'https' for network operations.

d)

Using the 'request' module for network operations