WorksheetsStudy Hall #3 NodeJS
Total questions: 10
Worksheet time: 20mins
How can you see all the dependencies for a Node.js app?
All the dependencies are listed down in the package.json file
By executing "npm i" and capturing the dependencies list
You can't have dependencies in a Node.js app
All the dependencies are listed down in the package-dependencies.json file
Which statement execute the code of sample.js file?
nodejs sample.js
node sample.js
sample.js
None of the above
How Node.js modules are available externally
module.spread
module.expose
module.exports
none of the above
Which function is used to include modules in Node.js.
add()
include()
module.exports
require()
In your own words, what is the HTTP Request/ Response Cycle?
What are the HTTP Methods?
Create, Read, Update, Delete
Request, Response, Render, Redirect
Get, Post, Put, Delete
Get, Post, Update, Delete
From steps 1 - 5, list each step of the MVC Architecture Model.
Explain what each of these four common EJS tags does.
What is the purpose of /:nameParam in this code?
Which function is used to include modules in Node.js.
add()
include()
module.exports
require()
