HomeQuizzesNode.jsREST APIs & Middleware
intermediateND-INT-001

REST APIs & Middleware

10 questions  ·  Node.js  ·  intermediate level

📝10 questions
No time limit
🔄Retake anytime
Instant feedback

Preview questions

1
Multiple Choice

Which HTTP method is idempotent — calling it multiple times gives the same result?

A
B
C
D
🔒 Sign in to answer and see explanation
2
Multiple Choice

What is CORS and why is it needed?

A
B
C
D
🔒 Sign in to answer and see explanation
3
Multiple Choice

What does this middleware do?

app.use((req, res, next) => {
  const start = Date.now()
  next()
  const duration = Date.now() - start
  console.log(`${req.method} ${req.url} - ${duration}ms`)
})
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