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 identify the client software making the request
B. To authenticate the user
C. To provide the user's IP address
D. To specify the preferred language
Answer: Option A
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
Which of the following is a method for securing web applications against Cross-Site Request Forgery (CSRF)?
A. Using HTTPS
B. Input validation
C. Using anti-CSRF tokens
D. Output encoding

Correct Answer: Option C


Explanation:
Anti-CSRF tokens are a common defense, where a unique token is included in forms and validated on the server to ensure the request originates from the legitimate user.

This question belongs to: Computer Internet and Web Technologies
Question #2
What is the function of the 'bcc' option in electronic mailing interfaces?
A. To prioritize email data packets over standard text routing paths
B. To send a blind carbon copy where designated recipient identities remain private from others
C. To block junk automated messages from landing inside your clean primary folders
D. To automatically forward incoming communications to alternative server accounts

Correct Answer: Option B


Explanation:
Bcc stands for Blind Carbon Copy. It allows an email to be sent to a recipient without their identity being disclosed to other primary or carbon-copied recipients.

This question belongs to: Computer Internet and Web Technologies
Question #3
Which specific browser utility or tool allows web developers to view, modify, and clear localized data store values like cookies, LocalStorage, and SessionStorage natively?
A. Local server cache monitoring console
B. Application Panel / Storage Tab
C. Incognito browser window frame
D. Standard bookmark navigation dashboard

Correct Answer: Option B


Explanation:
The Application or Storage tab inside browser Developer Tools provides full management access to local client-side data data stores, allowing developers to inspect and wipe tokens or session flags.

This question belongs to: Computer Internet and Web Technologies