What is the purpose of the 'Host' header in an HTTP request? MCQ with Answer and Explanation

What is the purpose of the 'Host' header in an HTTP request?
A. To indicate the domain name of the server
B. To authenticate the user
C. To specify the client's IP address
D. To set the content type
Answer: Option A
Solution (By JKSSB Mock Tests)
The Host header specifies the domain name of the server (and optionally the port) to which the request is being sent, enabling virtual hosting.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Internet and Web Technologies Questions

Question #1
What is the primary operational task of a 'Local DNS Cache' operating within an individual computer's operating system environment?
A. To track local physical network interface hardware performance logs
B. To temporarily store recently resolved domain-to-IP address lookups locally, avoiding the need to query external DNS servers for repeat visits
C. To filter email spam items from corporate mail boxes
D. To parse HTML structural page data inside browser applications

Correct Answer: Option B


Explanation:
The local DNS cache retains recent domain resolutions in device memory, reducing latency and network traffic by accelerating address lookups for frequently visited websites.

This question belongs to: Computer Internet and Web Technologies
Question #2
Which type of web architecture uses a 'Three-Tier' format to divide application logical structures cleanly?
A. HTML file, CSS style script, and JavaScript dynamic loader
B. Presentation tier (Browser), Application tier (Server logic), and Data tier (Database)
C. Sender inbox, Gateway router, and Recipient junk folder
D. Local router, WAN switch, and Global satellite interface

Correct Answer: Option B


Explanation:
A standard three-tier web application architecture separates concerns into the presentation layer (UI), the application logic tier, and the database storage tier.

This question belongs to: Computer Internet and Web Technologies
Question #3
Which of the following is a technique to improve web security by setting limits on what resources can be loaded?
A. Same-origin policy
B. CORS
C. Content Security Policy (CSP)
D. All of the above

Correct Answer: Option C


Explanation:
CSP is a security feature that allows a site to define a whitelist of allowed sources for content, mitigating XSS and other attacks.

This question belongs to: Computer Internet and Web Technologies