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
Which of the following browser technologies executes dynamic programming code natively on the client's computer to create interactive UI behaviors without continuous server interaction?
A. CSS Layout Core
B. XML Metadata Templates
C. JavaScript
D. SQL Client Scripts

Correct Answer: Option C


Explanation:
JavaScript is the standard client-side scripting language interpreted natively by modern browser engines to implement complex interactive logic on web pages.

This question belongs to: Computer Internet and Web Technologies
Question #2
What is the function of an IP address?
A. To encrypt data
B. To identify a device on a network
C. To store web pages
D. To translate domain names

Correct Answer: Option B


Explanation:
An IP address is a numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication.

This question belongs to: Computer Internet and Web Technologies
Question #3
What structural element forms the separator dividing individual query parameter pairs inside a standard URL structure, such as '?id=1&page=2'?
A. The ampersand (&) character
B. The hash (#) character
C. The colon (:) character
D. The forward slash (/) character

Correct Answer: Option A


Explanation:
In a URL query string, the question mark (?) initiates the parameters, while individual key-value pairs are separated from each other using the ampersand (&) character.

This question belongs to: Computer Internet and Web Technologies