🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Browser Storage and Cookies: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. Which storage is cleared when the browser tab is closed?
  2. Q2. Which storage is sent to the server automatically with every request?
  3. Q3. What does this print? (code)
  4. Q4. What does this print? (code)
  5. Q5. What does the HttpOnly cookie attribute do?
  6. Q6. What does the Secure attribute do?
  7. Q7. A cookie has no Expires and no Max-Age. When is it deleted?
  8. Q8. Where should a user's login session id be stored for best security?
  9. Q9. Why is putting large data in cookies a bad idea?
  10. Q10. Which browser storage is best for thousands of notes that must work offline?