Google News
logo
JavaScript IndexedDB - Quiz(MCQ)

JavaScript IndexedDB : A sizable object store integrated into the browser is called IndexedDB. Using key-value pairings, the IndexedDB enables you to store the data persistently. Any JavaScript type, such as boolean, number, text, undefined, null, date, regex, object, array, blob, and files, may be used as the value.

A sizable object kept in web browsers is the IndexedDB. Key-value pairs are how the IndexedDB stores data. Any data, both primary and complex, can be used as values.

A)
Java-based object-oriented database
B)
Python-based object-oriented database
C)
JavaScript-based object-oriented database
D)
None of the above

Correct Answer :   JavaScript-based object-oriented database


Explanation : IndexedDB is JavaScript-based object-oriented database.

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   Yes


Explanation : IndexedDB allows you to persistently store data within a user's browser.

A)
Core limit
B)
Soft limit
C)
Hard limit
D)
None of the above

Correct Answer :   Soft limit


Explanation : Global limit of storage is also known as a soft limit.

A)
Asynchronously
B)
Synchronously
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Asynchronously


Explanation : Operations performed using IndexedDB are done asynchronously.

A)
RDBMS
B)
Network database
C)
Hierarchical database
D)
NoSQL

Correct Answer :   NoSQL


Explanation : IndexedDB is a NoSQL database.

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   No


Explanation : IndexedDB does not employ Structured Query Language Because IndexedDB is a NoSQL database, it does not employ SQL.

A)
Db()
B)
New()
C)
Build()
D)
Open()

Correct Answer :   Open()


Explanation : The open() method in IndexedDB can be employed to build a database.

A)
Core limit
B)
Soft limit
C)
Hard limit
D)
None of the above

Correct Answer :   Hard limit


Explanation : The group limit of storage is also known as the Hard limit.

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

Correct Answer :   2


Explanation : Storage comes in two types :

* Persistent
* Temporary

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

Correct Answer :   3


Explanation : The three modes of transactions are: readwrite, readonly, and versionchange.

11 .
An ____ is a type of object store that is used to seek up entries in another object store known as the referenced object store.
A)
ID
B)
Rank
C)
Index
D)
Indicator

Correct Answer :   Index


Explaination : An index is a type of object store that is used to seek up entries in another object store known as the referenced object store.

A)
Go
B)
Java
C)
Python
D)
JavaScript

Correct Answer :   JavaScript


Explanation : We use JavaScript to connect with IndexedDB.

A)
deleteDatabase()
B)
delDatabase()
C)
erasedatabase()
D)
Removedatabase()

Correct Answer :   deleteDatabase()


Explanation : The deleteDatabase() method can be used to remove a database.

A)
IDBDatabase.end()
B)
IDBDatabase.close()
C)
IDBDatabase.finish()
D)
None of the above

Correct Answer :   IDBDatabase.close()


Explanation : To close a database we need to use the function IDBDatabase.close()

A)
Active
B)
Inactive
C)
Finished
D)
Committing

Correct Answer :   Finished


Explanation : After a transaction is committed or aborted then it is in the finished state.

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   No


Explanation : During the commit state, no new requests can be made.

A)
True
B)
False
C)
Can Not Say
D)
None of the above

Correct Answer :   True


Explanation : The connection is not terminated until all transactions have been completed.

A)
True
B)
False
C)
Can Not Say
D)
None of the above

Correct Answer :   False


Explanation : A database may have multiple object stores.

A)
Active
B)
Finished
C)
Inactive
D)
Committing

Correct Answer :   Committing


Explanation : Once all the requests associated with a transaction are completed then it attempts to commit.

A)
Active
B)
Inactive
C)
Finished
D)
Committing

Correct Answer :   Active


Explanation : When the transaction is in an active state, new requests can be made against it.

A)
All()
B)
Getall()
C)
Includeall()
D)
None of the above

Correct Answer :   Getall()


Explanation : The getall() method returns all the objects in the object store.

A)
Object path
B)
Object stores
C)
Object repository
D)
None of the above

Correct Answer :   Object stores


Explanation : IndexedDB's data is stored in object stores.

A)
ObjectStore()
B)
openObjectStore()
C)
createObjectStore()
D)
ObjectStoreCreate()

Correct Answer :   createObjectStore()


Explanation : The createObjectStore() function can be employed to create an object store.

A)
delObjectStore()
B)
destroyObjectStore()
C)
deleteObjectStore()
D)
removeObjectStore()

Correct Answer :   deleteObjectStore()


Explanation : To destroy the object store, use the deleteObjectStore() method.

A)
True
B)
False
C)
Can Not Say
D)
None of the above

Correct Answer :   True


Explanation : We must open a transaction to conduct any operation in our database.