In order to maintain the consistency during transactions, database provides
ACommit
BAtomic
CFlashback
DRetain
Correct AnswerAtomic
6
Database locking concept is used to solve the problem of
ALost Update
BUncommitted Dependency
CInconsistent Data
DAll of the above
Correct AnswerAll of the above
7
Execution of transaction in isolation preserves the _________ of a database
AAtomicity
BConsistency
CDurability
DAll of the mentioned
Correct AnswerConsistency
8
A lock that allows concurrent transactions to access different rows of the same table is known as a
AField-level lock
BRow-level lock
CTable-level lock
DDatabase-level lock
Correct AnswerField-level lock
9
A system is in a ______ state if there exists a set of transactions such that every transaction in the set is waiting for another transaction in the set.
AIdle
BWaiting
CDeadlock
DReady
Correct AnswerDeadlock
10
Which of the following occurs when a transaction rereads data and finds new rows that were inserted by a command transaction since the prior read?
ANonrepeatable read
BPhantom read
CDirty read
DConsistent read
Correct AnswerPhantom read
11
Which of the following systems is responsible for ensuring durability?
ARecovery system
BAtomic system
CConcurrency control system
DCompiler system
Correct AnswerRecovery system
12
Which of the following systems is responsible for ensuring isolation?
ARecovery system
BAtomic system
CConcurrency control system
DCompiler system
Correct AnswerConcurrency control system
13
A transaction for which all committed changes are permanent is called:
Aatomic
Bconsistent
Cisolated
Ddurable
Correct Answerdurable
14
Transaction management ensures ____________ and __________ properties.
AAtomicity and Integrity
BAtomicity and Durability
CAtomicity and Abstraction
DNone of these
Correct AnswerAtomicity and Durability
15
Concurrency control is important for which of the following reasons?
ATo ensure data integrity when updates occur to the database in a multiuser environment
BTo ensure data integrity when updates occur to the database in a single-user environment
CTo ensure data integrity while reading data occurs to the database in a multiuser environment
DTo ensure data integrity while reading data occurs to the database in a single-user environment
Correct AnswerTo ensure data integrity when updates occur to the database in a multiuser environment
16
Locking may cause which of the following problems?
AErroneous updates
BDeadlock
CVersioning
DAll of the above.
Correct AnswerDeadlock
17
Execution of transaction in isolation preserves the _________ of a database
AAtomicity
BConsistency
CDurability
DAll of the mentioned
Correct AnswerConsistency
18
State true or false: If I = read(Q) and J = write(Q) then the order of I and J does not matter.
ATrue
BFalse
CMay be
DCan't say
Correct AnswerFalse
19
If a schedule is equivalent to a serial schedule, it is called as a _________
ASerializable schedule
BEquivalent schedule
CCommitted schedule
DNone of the mentioned
Correct AnswerSerializable schedule
20
________ allows only committed data to be read and further requires that no other transaction is allowed to update it between two reads of a data item by a transaction.
ARead uncommitted
BSerializable
CRepeatable read
DRead committed
Correct AnswerRepeatable read
21
When is a timestamp allotted
AWhen execution begins
BWhen execution is taking place
CWhen execution is completed
DNone of the mentioned
Correct AnswerWhen execution begins
22
I and J are _________ if they are operations by different transactions on the same data item, and at least one of them is a write operation.
AConflicting
BOverwriting
CIsolated
DDurable
Correct AnswerConflicting
23
If a schedule S can be transformed into a schedule Sā by a series of swaps of non-conflicting instructions, then S and Sā are
ANon conflict equivalent
BEqual
CConflict equivalent
DIsolation equivalent
Correct AnswerConflict equivalent
24
The set of ________ in a precedence graph consists of all the transactions participating in the schedule
AVertices
BEdges
CDirections
DNone of the mentioned
Correct AnswerVertices
Fill in the Blanks
25
Database __________ are the units in which programs read or write information.
Correct Answerobjects
26
Once the DBMS informs the user that a transaction has been successfully completed, its effects should persist even if the system crashes before all its changes are reflected on disk known as __________
Correct Answerdurability
27
__________ is the initial state of a transaction.
Correct AnswerActive state
28
__________ state occurs after the discovery that normal execution can no longer proceed.
Correct AnswerFailed
29
Transaction-processing systems usually allow multiple transactions to run concurrently (at the same time) known as __________
Correct Answerconcurrent execution of transactions
30
Users are responsible for ensuring transaction __________
Correct Answerconsistency
31
The __________ locking protocol ensures serializability.
Correct Answertwo-phase
32
__________ protocols ensure that the system will never enter into a deadlock state.
Correct AnswerDeadlock prevention
33
When a deadlock is detected, some transaction will have to be rolled back to break the __________
Correct Answerdeadlock
34
A transaction is an execution of a user program and is seen by the DBMS as a __________ or list of actions.