wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Study Hall #3 NodeJS

Total questions: 10

Worksheet time: 20mins

Name
Class
Date
1.

How can you see all the dependencies for a Node.js app?

a)

All the dependencies are listed down in the package.json file

b)

By executing "npm i" and capturing the dependencies list

c)

You can't have dependencies in a Node.js app

d)

All the dependencies are listed down in the package-dependencies.json file

2.

Which statement execute the code of sample.js file?

a)

nodejs sample.js

b)

node sample.js

c)

sample.js

d)

None of the above

3.

How Node.js modules are available externally

a)

module.spread

b)

module.expose

c)

module.exports

d)

none of the above

4.

Which function is used to include modules in Node.js.

a)

add()

b)

include()

c)

module.exports

d)

require()

5.

In your own words, what is the HTTP Request/ Response Cycle?

4 lines
6.

What are the HTTP Methods?

a)

Create, Read, Update, Delete

b)

Request, Response, Render, Redirect

c)

Get, Post, Put, Delete

d)

Get, Post, Update, Delete

7.

From steps 1 - 5, list each step of the MVC Architecture Model.

4 lines
8.

Explain what each of these four common EJS tags does.

4 lines
9.

What is the purpose of /:nameParam in this code?

4 lines
10.

Which function is used to include modules in Node.js.

a)

add()

b)

include()

c)

module.exports

d)

require()