101 · Question #555
What are three functions commonly performed by HTTP cookies? (Choose three)
The correct answer is A. Track users' browsing activities B. hold User preferences C. maintain session state. HTTP cookies serve three primary roles - tracking user activity, storing preferences, and maintaining session state. They are passive data containers and cannot execute scripts of any kind.
Question
What are three functions commonly performed by HTTP cookies? (Choose three)
Options
- ATrack users' browsing activities
- Bhold User preferences
- Cmaintain session state
- Dexecute client side scripts
- Eexecute server side scripts
How the community answered
(24 responses)- A92% (22)
- D4% (1)
- E4% (1)
Why each option
HTTP cookies serve three primary roles - tracking user activity, storing preferences, and maintaining session state. They are passive data containers and cannot execute scripts of any kind.
Cookies store tracking identifiers that web servers and analytics platforms use to monitor and correlate a user's browsing behavior across multiple requests and sessions.
Cookies are widely used to persist user-specific preferences such as language selection, display settings, or theme choices between website visits.
Session cookies hold session tokens or identifiers that allow stateless HTTP to simulate stateful interactions by associating subsequent requests with a specific authenticated user session.
Executing client-side scripts is the function of JavaScript, not cookies - cookies are passive key-value pairs stored in the browser and cannot run code.
Server-side script execution is handled by server technologies such as PHP, Python, or Node.js, not by cookies, which have no execution capability on any tier.
Concept tested: HTTP cookie functions - tracking, preferences, session state
Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies
Topics
Community Discussion
No community discussion yet for this question.