What is the purpose of the 'User-Agent' header in HTTP requests? MCQ with Answer and Explanation

What is the purpose of the 'User-Agent' header in HTTP requests?
A. To specify the preferred language
B. To authenticate the user
C. To identify the client software making the request
D. To provide the user's IP address
Answer: Option C
Solution (By JKSSB Mock Tests)
The User-Agent header allows the server to identify the type of browser, operating system, and version, enabling content adaptation.

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1
What does a '500 Internal Server Error' message from a web address generally represent?
A. The user entered an incorrect account password.
B. The specific webpage directory structure was typed incorrectly.
C. The client computer has disconnected from its router box.
D. A general-purpose error indicating that the server encountered an unexpected condition that prevented it from fulfilling the request.

Correct Answer: Option D


Explanation:
The 500 status code is a generic catch-all server-side error showing that the web server ran into a script configuration or system conflict preventing normal execution.

This question belongs to: Computer Internet and Web Technologies
Question #2
Which type of web application asset functions as an structured structured configuration layout defining metadata structures, used widely to map structural sitemaps over the web?
A. XML file (.xml)
B. SMTP routing statement parameters
C. Unlinked configuration log text
D. CSS formatting style schemas

Correct Answer: Option A


Explanation:
XML files use structured data tags to store site indices and document configurations cleanly, making them a common choice for sitemaps and data feeds parsed by web crawlers.

This question belongs to: Computer Internet and Web Technologies
Question #3
Which of the following protocols is fundamentally used to resolve physical MAC addresses from known network layer IP addresses?
A. DHCP
B. ARP
C. ICMP
D. DNS

Correct Answer: Option B


Explanation:
ARP (Address Resolution Protocol) resolves a network layer internet protocol (IP) address into its corresponding data link layer hardware MAC address.

This question belongs to: Computer Internet and Web Technologies