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 specify the preferred language
C. To provide the user's IP address
D. To authenticate the user
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 type of web-based attack that involves injecting SQL queries into input fields?
A. Session Hijacking
B. Cross-Site Scripting
C. SQL Injection
D. Cross-Site Request Forgery

Correct Answer: Option C


Explanation:
SQL Injection is an attack where malicious SQL statements are inserted into input fields to manipulate the database.

This question belongs to: Computer Internet and Web Technologies
Question #2
Which element in a web application setup serves as a central logical script engine translating database contents into formatted web assets on the fly, typically called a CMS?
A. Content Management System (e.g., WordPress)
B. Static Web Page Layout Document
C. File Transfer Protocol desktop bridge software
D. DNS Resolver Network Interface Router

Correct Answer: Option A


Explanation:
A Content Management System (CMS) is a server-side application platform that dynamically coordinates database content, templates, and permissions to publish and manage web pages.

This question belongs to: Computer Internet and Web Technologies
Question #3
What is the purpose of the 'WebP' image format?
A. To replace JPEG
B. To provide superior compression and quality for web images
C. All of the above
D. To support transparency and animation

Correct Answer: Option C


Explanation:
WebP is a modern image format that offers better compression than JPEG and PNG, with support for transparency and animation.

This question belongs to: Computer Internet and Web Technologies