HomeQuizzesNode.jsHTTP & Express Basics
beginnerND-BEG-003

HTTP & Express Basics

10 questions  ·  Node.js  ·  beginner level

📝10 questions
No time limit
🔄Retake anytime
Instant feedback

Preview questions

1
Multiple Choice

What does req.params contain in Express?

app.get("/users/:id", (req, res) => {
  console.log(req.params)
})
// GET /users/42
A
B
C
D
🔒 Sign in to answer and see explanation
2
Multiple Choice

What is the difference between req.params and req.query?

// GET /search/users?name=rahul&age=25
A
B
C
D
🔒 Sign in to answer and see explanation
3
Spot the Bug

This Express route has a bug:

app.get("/user", (req, res) => {
  const user = getUser()
  res.json(user)
  res.send("done")
})
A
B
C
D
🔒 Sign in to answer and see explanation
+ 7 more questions
Sign in to attempt the full quiz
Free · No credit card required

Ready to attempt the full quiz?

Sign in to attempt all 10 questions, track your progress, and unlock AI-powered personalization.

← Browse all Node.js quizzes