Machine-translated by Google. Questions are authored in English.
Top

Discussion

What is a cookie in the context of web browsing?

  • A.A small piece of data a website stores in the browser
  • B.A program that speeds up page loading
  • C.A type of computer virus
  • D.An image cached by the browser

Answer: B

Correct answer: A small piece of data a website stores in the browser

A cookie is a small piece of data a site asks the browser to store and to send back with every subsequent request to that site. It exists because HTTP is stateless: the server remembers nothing between requests, so a cookie is what allows it to recognise a returning visitor. That is how a login persists, how a shopping basket survives navigation, and how preferences are remembered. They are classified in useful ways. A session cookie lasts until the browser closes; a persistent one has an expiry date. A first-party cookie belongs to the site being visited; a third-party cookie belongs to another domain embedded in the page, which is what allows advertisers to track a user across sites - and what privacy regulation such as the GDPR addresses. A cookie is inert data, not a program, so it cannot itself be a virus.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.