Web Storage MCQ Questions and Answers

Web Storage MCQs : This section focuses on "Web Storage" in Html. These Multiple Choice Questions (MCQs) should be practiced to improve the Html skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.

1. How many storages are there?

A. 2
B. 3
C. 4
D. 5

View Answer


2. Cookies are limited to about_______ of data

A. 1 KB
B. 2 KB
C. 4 KB
D. 8 KB

View Answer


3. Cookies are included with every HTTP request

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer


4. The ___________ is designed for scenarios where the user is carrying out a single transaction, but could be carrying out multiple transactions in different windows at the same time.

A. Local Storage
B. Session Storage
C. Both A and B
D. None of the above

View Answer


5. To clear a local storage setting you would need to call?

A. localStorage.clear() method
B. localStorage.remove() method
C. localStorage.remove('key') method
D. None of the above

View Answer


6. The Session Storage Data would be deleted by the browsers immediately ________ the session gets terminated.

A. before
B. after
C. after 5 mins
D. before 5 mins

View Answer


7. Before HTML5 where data had to be stored?

A. cookies
B. browser
C. only in Internet Explorer
D. only in Chrome

View Answer


8. What is the limit of character storage for chrome 23.0 in localStorage?

A. unlimited
B. 1021 k
C. 4.98 M
D. None of the above

View Answer


9. Which of the following is not a web storage interface?

A. storage
B. window
C. storageEvent
D. privacy

View Answer


10. The Local Storage is designed for storage that spans multiple windows, and lasts beyond the current session.

A. Yes
B. No
C. Can be true or false
D. Can not say

View Answer





Discussion



* You must be logged in to add comment.