Home »
MCQs »
DBMS MCQs
DBMS Transaction MCQs
DBMS Transaction MCQs: This section contains multiple-choice questions and answers on Transaction in DBMS.
Submitted by Anushree Goswami, on April 06, 2022
1. An operation is part of a transaction if it is ___ related.
- Logically
- Analytically
- Reasonably
- None
Answer: A) Logically
Explanation:
An operation is part of a transaction if it is logically related.
Discuss this Question
2. To access the contents of the database, ___ user performs transactions.
- Single
- Two
- Three
- Multiple
Answer: A) Single
Explanation:
To access the contents of the database, a single user performs transactions.
Discuss this Question
3. How many operations of transactions are there?
- 3
- 4
- 5
- 6
Answer: B) 4
Explanation:
There are 4 operations of transactions.
Discuss this Question
4. Which of the following is an operation of transactions?
- Read
- Write
- Commit
- All of the above
Answer: D) All of the above
Explanation:
The operations of transactions are -
- Read
- Write
- Commit
- Rollback
Discuss this Question
5. X is read from a database and stored in a buffer in main memory with the ___ operation.
- Read
- Write
- Commit
- Rollback
Answer: A) Read
Explanation:
X is read from a database and stored in a buffer in main memory with the read operation.
Discuss this Question
6. Writing the data from the buffer back to the database is accomplished by using the _____ operation.
- Read
- Write
- Commit
- Rollback
Answer: B) Write
Explanation:
Writing the data from the buffer back to the database is accomplished by using the write operation.
Discuss this Question
7. ___ is used to permanently save the work.
- Read
- Write
- Commit
- Rollback
Answer: C) Commit
Explanation:
Commit is a tool used to permanently save the work.
Discuss this Question
8. An undo operation is called a ___.
- Rollback
- Commit
- Write
- Read
Answer: A) Rollback
Explanation:
An undo operation is called a rollback.
Discuss this Question
9. How many properties of transactions are there?
- 4
- 5
- 6
- 7
Answer: A) 4
Explanation:
There are 4 properties of transactions.
Discuss this Question
10. In a database, prior to and after a transaction, properties are used to ensure ___.
- Consistency
- Redundancy
- Latency
- Anonymity
Answer: A) Consistency
Explanation:
In a database, prior to and after a transaction, properties are used to ensure consistency.
Discuss this Question
11. Which of the following is a property of transaction?
- Atomicity
- Consistency
- Durability
- All of the above
Answer: D) All of the above
Explanation:
The following are the properties of transactions -
- Atomicity
- Consistency
- Isolation
- Durability
Discuss this Question
12. ___ states that all operations of a transaction must occur simultaneously; otherwise, the transaction will be aborted.
- Atomicity
- Consistency
- Isolation
- Durability
Answer: A) Atomicity
Explanation:
Atomicity states that all operations of a transaction must occur simultaneously; otherwise, the transaction will be aborted.
Discuss this Question
13. What is TRUE about atomicity?
- The transaction cannot be partially completed, since there is no midway.
- In each transaction, either the entire transaction is executed or it is not.
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
In case of atomicity -
- The transaction cannot be partially completed, since there is no midway.
- In each transaction, either the entire transaction is executed or it is not.
Discuss this Question
14. How many operations does atomicity involve?
- 1
- 2
- 3
- 4
Answer: B) 2
Explanation:
Atomicity involves 2 operations.
Discuss this Question
15. Which of the following is an operation in atomicity?
- Abort
- Commit
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
The operations in the atomicity are -
- Abort
- Commit
Discuss this Question
16. Transactions that are ___ do not expose all changes.
- Committed
- Rollbacked
- Aborted
- None of the above
Answer: C) Aborted
Explanation:
Transactions that are aborted do not expose all changes.
Discuss this Question
17. All changes made in a transaction are ___ once it commits.
- Visible
- Not Visible
- Broken
- Not Broken
Answer: A) Visible
Explanation:
All changes made in a transaction are visible once it commits.
Discuss this Question
18. What is TRUE about Consistency?
- As a result of integrity constraints, the database remains consistent before and after the transaction.
- In most cases, a database remains either in its previous stable state or in a new stable state following the execution of a transaction.
- Every transaction undergoes a consistent database instance, which is the consistent property of databases.
- All of the above
Answer: D) All of the above
Explanation:
In case of consistency -
- As a result of integrity constraints, the database remains consistent before and after the transaction.
- In most cases, a database remains either in its previous stable state or in a new stable state following the execution of a transaction.
- Every transaction undergoes a consistent database instance, which is the consistent property of databases.
Discuss this Question
19. Transactions allow the database to be transformed from ___.
- One consistent state to another consistent state
- One inconsistent state to another consistent state
- One inconsistent state to another inconsistent state
- One consistent state to another inconsistent state
Answer: A) One consistent state to another consistent state
Explanation:
Transactions allow the database to be transformed from one consistent state to another.consistent state.
Discuss this Question
20. What is TRUE about Isolation?
- By using the data used during a transaction, the second transaction will not be able to use it until the first has been executed.
- The data item X cannot be accessed by any other transaction T2 until the transaction T1 is completed and the data item X is used by the transaction T1.
- It enforced the isolation property via its concurrency control subsystem.
- All of the above
Answer: D) All of the above
Explanation:
In case of Isolation -
- By using the data used during a transaction, the second transaction will not be able to use it until the first has been executed.
- The data item X cannot be accessed by any other transaction T2 until the transaction T1 is completed and the data item X is used by the transaction T1.
- It enforced the isolation property via its concurrency control subsystem.
Discuss this Question
21. A database's consistent state is measured by the ___ property.
- Consistency
- Rollback
- Durability
- Isolation
Answer: C) Durability
Explanation:
A database's consistent state is measured by the durability property.
Discuss this Question
22. A durable transaction is one that makes ___ changes.
- Permanent
- Temporary
- Basic
- Advanced
Answer: A) Permanent
Explanation:
A durable transaction is one that makes permanent changes.
Discuss this Question
23. What is TRUE about Durability?
- The failure of the system or an error in a transaction cannot cause them to be lost.
- A consistent state is reached when a transaction is completed.
- System failures cannot lead to the loss of that consistent state.
- All of the above
Answer: D) All of the above
Explanation:
In case of Durability -
- The failure of the system or an error in a transaction cannot cause them to be lost.
- A consistent state is reached when a transaction is completed.
- System failures cannot lead to the loss of that consistent state.
Discuss this Question
24. The reliability property of a DBMS is managed by the ___ subsystem.
- Recovery
- Reliability
- Property
- Database
Answer: A) Recovery
Explanation:
The reliability property of a DBMS is managed by the recovery subsystem.
Discuss this Question