Question:

What is a name-value pair that a web server sends to a client machine as a part of HTTP response?

Show Hint

Cookie = Small name-value pair stored on the client browser to maintain state information.
Updated On: Jun 25, 2026
  • Cookie
  • Session
  • Bookmark
  • Document object
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Concept: HTTP is a stateless protocol. To maintain user-specific information across multiple requests, web servers use cookies. A cookie is a small piece of information stored by the browser on behalf of the server.

Step 1:
Understand Cookies.
A cookie consists of a name-value pair such as: \[ \texttt{UserID = 12345} \] or \[ \texttt{SessionID = ABCD123} \] which is sent by the server through the HTTP response header.

Step 2:
Purpose of Cookies.
Cookies are used for:
• Session management
• User authentication
• Personalization
• Tracking user activity

Step 3:
Analyze the options.
Session is server-side information. Bookmark is a browser feature. Document Object refers to DOM elements. Only Cookie represents a name-value pair sent by the server.

Step 4:
Select the answer.
\[ \boxed{\text{Cookie}} \]
Was this answer helpful?
0
0