ExamVeda
Login
Home
71
The Client-Side Databases are stored in the
Discuss
Answer & Solution
Answer: Option B
Solution:
The actual client-side databases are stored on the user’s computer and are directly accessed by JavaScript code in the browser.
72
Which of the following use the Web SQL Database?
Discuss
Answer & Solution
Answer: Option A
Solution:
Chrome, Safari, and Opera implemented the Web SQL Database API, but Firefox and IE have not, and likely never will.
73
Which of the following are objective database and not a relational database?
Discuss
Answer & Solution
Answer: Option C
Solution:
IndexedDB is an object database, not a relational database, and it is much simpler than databases that support SQL queries. It is more powerful, efficient, and robust than the key/value storage provided by the Web Storage API, however.
74
In the IndexedDB database, database is defined as
Discuss
Answer & Solution
Answer: Option B
Solution:
In the IndexedDB API, a database is simply a collection of named object stores.
75
A key path is defined as
Discuss
Answer & Solution
Answer: Option C
Solution:
A key path is defined as a value that tells the database how to extract an object’s key from the object.
76
How does IndexedDB provide atomicity?
Discuss
Answer & Solution
Answer: Option B
Solution:
IndexedDB provides atomicity guarantees: queries and updates to the database are grouped within a transaction so that they all succeed together or all fail together and never leave the database in an undefined partially updated state.
77
Which of the following is a feature of the IndexedDB API?
Discuss
Answer & Solution
Answer: Option A
Solution:
One of the convenient feature of the IndexedDB API is that it simplifies the transaction management.
78
What is the alternate way to search in an IndexedDB API?
Discuss
Answer & Solution
Answer: Option C
Solution:
In addition to retrieving objects from an object store by their primary key value, you may want to be able to search based on the value of other properties in the object. In order to be able to do this, you can define any number of indexes on the object store.
79
Which is the function used to look up an object?
Discuss
Answer & Solution
Answer: Option C
Solution:
You look up an object by calling the get() method of the object store or store a new object by calling put().
80
Which is the method to look up the objects for a range of keys?
Discuss
Answer & Solution
Answer: Option B
Solution:
If you want to look up the objects for a range of keys, you create an IDBRange object and pass it to the openCursor() method of the object store.