Document Object Model And Event Handling - Study Mode

[#116] Which of the following are objective database and not a relational database?
Correct Answer

(C) IndexedDB

Explanation

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.

[#117] In the IndexedDB database, database is defined as
Correct Answer

(B) A collection of named object stores

Explanation

Solution: In the IndexedDB API, a database is simply a collection of named object stores.

[#118] A key path is defined as
Correct Answer

(C) A value that tells the database how to extract an object’s key from the object

Explanation

Solution: A key path is defined as a value that tells the database how to extract an object’s key from the object.

[#119] How does IndexedDB provide atomicity?
Correct Answer

(B) Grouping within a transaction

Explanation

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.

[#120] Which of the following is a feature of the IndexedDB API?
Correct Answer

(A) Simplifies the transaction management

Explanation

Solution: One of the convenient feature of the IndexedDB API is that it simplifies the transaction management.