W3
Teacher
Explore
Browse by field
Artificial Intelligence
Accounting & Finance
Information Technology
Show all fields
Interview Q&A
All Interview Questions
Beginner
Intermediate
Advanced
Practice
MCQs
Quizzes
Mock Interviews
About
Light
Dark
Auto
Sign in
Get Started
Search interview questions
Search
25 questions for “RESTful API Design with Express”
Found in 1 field. Select a question to see its full answer.
Matching topics
Node.js
Express
& Middleware
4
Node.js
GraphQL
with
Node.js
1
Information Technology
25 questions in 1 technology
#
Question
Technology
Topic
Level
1
What is
Express
.js, and what problem does it solve compared to using Node.js's raw http module directly?
Node.js › Express & Middleware
Node.js
Express
& Middleware
Beginner
2
What is the difference between application-level, router-level, and route-specific middleware in
Express
?
Node.js › Express & Middleware
Node.js
Express
& Middleware
Intermediate
3
What does the
express
.json() and
express
.urlencoded() built-in middleware do, and why must it be registered before routes that need to read req.body?
Node.js › Express & Middleware
Node.js
Express
& Middleware
Intermediate
4
What is the difference between res.send(), res.json(), and res.end() in
Express
, and when should each be used?
Node.js › Express & Middleware
Node.js
Express
& Middleware
Intermediate
5
How would you set up a basic GraphQL server in Node.js using Apollo Server, and what are schema and resolvers?
Node.js › GraphQL with Node.js
Node.js
GraphQL
with
Node.js
Beginner
6
What does the URL/URLSearchParams
API
provide, and why is it generally preferred over the older querystring module today?
Node.js › Core Node.js Modules
Node.js
Core Node.js Modules
Beginner
7
What is GraphQL, and how does it differ from a traditional REST
API
in terms of how clients request data?
Node.js › GraphQL
Node.js
GraphQL
Beginner
8
How would you create a basic HTTP server in Node.js using only the built-in node:http module,
with
out any framework?
Node.js › HTTP & Web Servers
Node.js
HTTP & Web Servers
Beginner
9
How would you implement a global 'not found' (404) handler in
Express
for any route that doesn't match a defined endpoint?
Node.js › Error Handling
Node.js
Error Handling
Intermediate
10
What is content negotiation in HTTP, and how would a Node.js
API
implement it to return either JSON or XML based on a client's Accept header?
Node.js › HTTP & Web Servers
Node.js
HTTP & Web Servers
Intermediate
Show all 25 questions in Information Technology