
BED AY25S2 Formative: npm, http routes
Authored by Larry Thng
Information Technology (IT)
2nd Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
Which line of code correctly initializes an Express application instance?
const app = express.create();
const app = express()
2.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
Which code is used to create a route that handles an HTTP POST request to the path /users?
app.get('/users',
(req, res) => {...})
app.put('/users',
(req, res) => {...})
app.delete('/users',
(req, res) => {...})
app.post('/users',
(req, res) => {...})
3.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
In the route /items/:id, how do you access the value of the dynamic route :id?
4.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
For the request /users?status=active,
how do you access the value of the query parameter?
req.params.status
req.query.status
req.body.status
req.url.status
5.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
Which method starts the Express server and binds it to a specified port?
6.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
Which npm command installs the express package
and adds it as a production dependency to package.json?
npm add express
npm install --save express
npm get express
npm install express
7.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
To execute a custom script named "deploy" in your package.json, which npm command must you use?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
10 questions
Wayground Quiz Review for G2 Benchmark 3
Quiz
•
2nd Grade
20 questions
addition facts
Quiz
•
2nd Grade
10 questions
Telling Time to the Nearest 5 Minutes
Quiz
•
2nd Grade
30 questions
Multiplication Facts 1-12
Quiz
•
2nd - 5th Grade
7 questions
Understanding Parallel, Intersecting, and Perpendicular Lines
Interactive video
•
1st - 6th Grade
14 questions
Main Idea
Quiz
•
2nd - 3rd Grade
20 questions
Multiplication Facts
Quiz
•
2nd - 3rd Grade
10 questions
3 Digit Addition and Subtraction with Regrouping
Quiz
•
2nd - 4th Grade