Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1Set-Cookie: cart=3; Expires=Fri, 01 Jan 2027 | AA persistent cookie: it has an expiry date, so it stays on the device after the browser closes until that date. | |
| 2Set-Cookie: sessionId=a81f | BThis describes a session cookie. A persistent cookie is kept on the device until its expiry date, even after the browser closes. | |
| 3A session cookie is kept in temporary memory and is deleted as soon as the browser closes | CA session cookie: it has no expiry date, so it is deleted when the browser is closed. | |
| 4A persistent cookie is stored on the device's storage and is kept until its expiry date | Dlifetime = until expiry date | |
| 5A cookie is a program that can run on my computer | Elifetime = until browser closes | |
| 6A persistent cookie is deleted when the browser closes | FCookies are not programs. They are small text files or pieces of text data, so they cannot run or do things by themselves. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
session vs persistent cookie — A session cookie is deleted when the browser closes; a persistent cookie is kept on the device until it expires. Cookies are text data, not programs.IF browserClosed = TRUE THEN
DELETE session cookie
ENDIFIF today > expiryDate THEN
DELETE persistent cookie
ENDIFIF cookie.expiry = NULL THEN
cookieType ← "session"
ENDIFcookieIsProgram ← FALSE
cookieIsVirus ← FALSE
cookieIsText ← TRUEIF cookieType = "persistent" THEN
KEEP cookie UNTIL expiryDate
ENDIF