ExamVeda
Login
Home
61
Which are the forms of client-side storage?
Discuss
Answer & Solution
Answer: Option D
Solution:
The various forms of client-side storage are web databases, filesystem API, Offline web applications and cookies.
62
Which is the storage that allows the caching of web pages and their associated resources?
Discuss
Answer & Solution
Answer: Option C
Solution:
HTML5 defines an “Offline Web Applications” API that allows the caching of web pages and their associated resources (scripts, CSS files, images, and so on). This is client-side storage for web applications themselves rather than just their data, and it allows web apps to install themselves so that they are available even when there is no connection to the Internet.
63
Which is the Microsoft’s own proprietary client-side storage?
Discuss
Answer & Solution
Answer: Option A
Solution:
Microsoft implements its own proprietary client-side storage mechanism, known as “userData,” in IE5 and later. userData enables the storage of medium amounts of string data and can be used as an alternative to Web Storage in versions of IE before IE8.
64
Which object supports Filesystem API?
Discuss
Answer & Solution
Answer: Option B
Solution:
The File object allows user-selected files to be uploaded through an XMLHttpRequest.
65
Which is the most appropriate database for developers requiring huge amount of data?
Discuss
Answer & Solution
Answer: Option C
Solution:
Developers who need to work with really huge amounts of data like to use databases, and the most recent browsers have started to integrate client-side database functionality into their browsers.
66
The localStorage and sessionStorage belongs to
Discuss
Answer & Solution
Answer: Option A
Solution:
Browsers that implement the “Web Storage” draft specification define two properties on the Window object: localStorage and sessionStorage. Both properties refer to a Storage object—a persistent associative array that maps string keys to string values.
67
What is the main difference between localStorage and sessionStorage?
Discuss
Answer & Solution
Answer: Option C
Solution:
The difference between localStorage and sessionStorage has to do with lifetime and scope: how long the data is saved for and who the data is accessible to.
68
What is the lifetime of the data stored through localStorage?
Discuss
Answer & Solution
Answer: Option A
Solution:
Data stored through localStorage is permanent: it does not expire and remains stored on the user’s computer until a web app deletes it or the user asks the browser (through some browser-specific UI) to delete it.
69
Which is the function used to retrieve a value?
Discuss
Answer & Solution
Answer: Option C
Solution:
To retrieve a value, pass the name to getItem().
70
Which is the function used to store a value?
Discuss
Answer & Solution
Answer: Option A
Solution:
To store a value, pass the name and value to setItem().