ā˜‘ MCQ PRACTICE

Database Management Systems Unit 4

Practice objective questions for quick revision and examination preparation. Try answering each question before revealing the answer.

šŸ“š Database Management Systems
šŸ“– Unit 4
šŸŽÆ MCQs

Database Management Systems - Unit-4

1
A _________ consists of a sequence of query and/or update statements.
ATransaction
BCommit
CRollback
DFlashback
Correct Answer Transaction
2
Which of the following makes the transaction permanent in the database?
AView
BCommit
CRollback
DFlashback
Correct Answer Commit
3
In order to undo the work of transaction after last commit which one should be used?
AView
BCommit
CRollback
DFlashback
Correct Answer Rollback
4
What is ACID properties of Transactions?
AAtomicity, Consistency, Isolation, Database
BAtomicity, Consistency, Isolation, Durability
CAtomicity, Consistency, Inconsistent, Durability
DAutomatically, Concurrency, Isolation, Durability
Correct Answer Atomicity, Consistency, Isolation, Durability
5
In order to maintain the consistency during transactions, database provides
ACommit
BAtomic
CFlashback
DRetain
Correct Answer Atomic
6
Database locking concept is used to solve the problem of
ALost Update
BUncommitted Dependency
CInconsistent Data
DAll of the above
Correct Answer All of the above
7
Execution of transaction in isolation preserves the _________ of a database
AAtomicity
BConsistency
CDurability
DAll of the mentioned
Correct Answer Consistency
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 Answer Field-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 Answer Deadlock
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 Answer Phantom read
11
Which of the following systems is responsible for ensuring durability?
ARecovery system
BAtomic system
CConcurrency control system
DCompiler system
Correct Answer Recovery system
12
Which of the following systems is responsible for ensuring isolation?
ARecovery system
BAtomic system
CConcurrency control system
DCompiler system
Correct Answer Concurrency control system
13
A transaction for which all committed changes are permanent is called:
Aatomic
Bconsistent
Cisolated
Ddurable
Correct Answer durable
14
Transaction management ensures ____________ and __________ properties.
AAtomicity and Integrity
BAtomicity and Durability
CAtomicity and Abstraction
DNone of these
Correct Answer Atomicity 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 Answer To 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 Answer Deadlock
17
Execution of transaction in isolation preserves the _________ of a database
AAtomicity
BConsistency
CDurability
DAll of the mentioned
Correct Answer Consistency
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 Answer False
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 Answer Serializable 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 Answer Repeatable read
21
When is a timestamp allotted
AWhen execution begins
BWhen execution is taking place
CWhen execution is completed
DNone of the mentioned
Correct Answer When 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 Answer Conflicting
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 Answer Conflict 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 Answer Vertices

Fill in the Blanks

25 Database __________ are the units in which programs read or write information.
Correct Answer objects
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 Answer durability
27 __________ is the initial state of a transaction.
Correct Answer Active state
28 __________ state occurs after the discovery that normal execution can no longer proceed.
Correct Answer Failed
29 Transaction-processing systems usually allow multiple transactions to run concurrently (at the same time) known as __________
Correct Answer concurrent execution of transactions
30 Users are responsible for ensuring transaction __________
Correct Answer consistency
31 The __________ locking protocol ensures serializability.
Correct Answer two-phase
32 __________ protocols ensure that the system will never enter into a deadlock state.
Correct Answer Deadlock prevention
33 When a deadlock is detected, some transaction will have to be rolled back to break the __________
Correct Answer deadlock
34 A transaction is an execution of a user program and is seen by the DBMS as a __________ or list of actions.
Correct Answer series
← Back to All MCQs