Question 11
EasyWhat does it mean for a transaction to be committed?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
DBMS
What does it mean for a transaction to be committed?
It is waiting for a lock
It finished successfully and its changes are permanent
It is still running
It has been cancelled
Sign up free to see the answer and a step-by-step explanation.
What does it mean when a transaction is aborted?
It finished successfully
It is waiting for input
It was rolled back and the database was restored to its state before the transaction
It was saved to disk
Sign up free to see the answer and a step-by-step explanation.
What is the active state of a transaction?
The transaction has been rolled back
The transaction has committed
The transaction is still executing its operations
The transaction is stored on disk
Sign up free to see the answer and a step-by-step explanation.
When is a transaction in the partially committed state?
After it has been rolled back
After its final operation has run but before the commit has been made permanent
Before it starts
While it waits for a user
Sign up free to see the answer and a step-by-step explanation.
What is a transaction log?
A list of users
A printed report
A record of the changes made by transactions, used for recovery
A table of passwords
Sign up free to see the answer and a step-by-step explanation.
Which SQL statement explicitly starts a transaction in many systems?
OPEN
CREATE TRANSACTION
BEGIN (or START TRANSACTION)
SELECT TRANSACTION
Sign up free to see the answer and a step-by-step explanation.
What is autocommit mode?
The DBMS commits once a day
Each SQL statement is committed automatically as soon as it succeeds
Only SELECT statements are committed
Transactions are never committed
Sign up free to see the answer and a step-by-step explanation.
Why are transactions essential for money transfers?
They make transfers faster
They encrypt the account numbers
They make sure both the debit and the credit happen, or neither does
They print a receipt
Sign up free to see the answer and a step-by-step explanation.
What is concurrent execution of transactions?
Running the same transaction twice
Running one transaction after another
Running the operations of several transactions interleaved over the same period
Running transactions only at night
Sign up free to see the answer and a step-by-step explanation.
Which part of a DBMS is mainly responsible for the isolation property?
The backup tape drive
The query parser
The report generator
The concurrency-control manager
Sign up free to see the answer and a step-by-step explanation.