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 “HTTP & Web Servers”
Found in 1 field. Select a question to see its full answer.
Matching topics
Node.js
HTTP
&
Web
Servers
15
Information Technology
25 questions in 1 technology
#
Question
Technology
Topic
Level
1
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
2
How would you implement Server-Sent Events (SSE) in Node.js to push real-time updates to a browser client over a single long-lived
HTTP
connection?
Node.js › HTTP & Web Servers
Node.js
HTTP
&
Web
Servers
Advanced
3
How would you create a basic
HTTP
server in Node.js using only the built-in node:
http
module, without any framework?
Node.js › HTTP & Web Servers
Node.js
HTTP
&
Web
Servers
Beginner
4
What is the difference between an
HTTP
request header and a query parameter, and when should each be used to pass information to a Node.js server?
Node.js › HTTP & Web Servers
Node.js
HTTP
&
Web
Servers
Beginner
5
What is the difference between
HTTP
/1.1 and
HTTP
/2, and how does Node.js support
HTTP
/2 via the node:
http
2 module?
Node.js › HTTP & Web Servers
Node.js
HTTP
&
Web
Servers
Intermediate
6
What is
HTTP
keep-alive, and how does it improve performance for a Node.js server handling many requests from the same client?
Node.js › HTTP & Web Servers
Node.js
HTTP
&
Web
Servers
Intermediate
7
What is the difference between
HTTP
methods GET, POST, PUT, PATCH, and DELETE, and what does 'idempotent' mean in this context?
Node.js › HTTP & Web Servers
Node.js
HTTP
&
Web
Servers
Intermediate
8
What is the purpose of the
HTTP
OPTIONS method, and how does it relate to CORS preflight requests?
Node.js › HTTP & Web Servers
Node.js
HTTP
&
Web
Servers
Intermediate
9
What is the difference between a 301 and a 302
HTTP
redirect, and when should a Node.js application use each?
Node.js › HTTP & Web Servers
Node.js
HTTP
&
Web
Servers
Intermediate
10
How would you implement
HTTP
/2 server push in Node.js, and why has server push become less commonly recommended over time?
Node.js › HTTP & Web Servers
Node.js
HTTP
&
Web
Servers
Advanced
Show all 25 questions in Information Technology