Explore topic-wise MCQs in Html.

This section includes 12 Mcqs, each offering curated multiple-choice questions to sharpen your Html knowledge and support exam preparation. Choose a topic below to get started.

1.

For clearing all the settings which function should be called?

A. localStorage.remove(key)
B. localStorage.clear()
C. localStorage.remove()
D. localStorage.clearAll()
Answer» C. localStorage.remove()
2.

Which of the following is not the storageEvent interface?

A. event.newValue
B. event.url
C. event.key
D. event.clear
Answer» E.
3.

What is the limit of character storage for chrome 23.0 in sessionStorage?

A. 510 k
B. unlimited
C. 1021 k
D. 2.49 M
Answer» B. unlimited
4.

FOR_CLEARING_ALL_THE_SETTINGS_WHICH_FUNCTION_SHOULD_BE_CALLED??$

A. localStorage.remove(key)
B. localStorage.clear()
C. localStorage.remove()
D. localStorage.clearAll()
Answer» C. localStorage.remove()
5.

WHICH_OF_THE_FOLLOWING_IS_NOT_THE_STORAGEEVENT_INTERFACE??$

A. event.newValue
B. event.url
C. event.key
D. event.clear
Answer» E.
6.

Which of the following is invoked when it is not fired on window object?

A. removeItem()
B. clear()
C. setItem()
D. getItem()
Answer» E.
7.

Which of the following returns a number of value pairs?

A. storage.key(n)
B. storage.length
C. storage.setItem(key,value)
D. storage.clear()
Answer» C. storage.setItem(key,value)
8.

Which of the following is not a web storage interface?

A. storage
B. window
C. storageEvent
D. privacy
Answer» E.
9.

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

A. unlimited
B. none
C. 1021 k
D. 4.98 M
Answer» C. 1021 k
10.

In sessionStorage object data __________

A. is not deleted after the browser has been closed
B. can be seen but can’t edit
C. can be seen as well as edit
D. is deleted after the browser has been closed
Answer» E.
11.

In localStorage object data ________

A. is deleted after the browser has been closed
B. is not deleted after the browser has been closed
C. can be seen but can not edit
D. can be seen as well as edit
Answer» C. can be seen but can not edit
12.

Before HTML5 where data had to be stored?

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