wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

ADBMS_Chapter 2_Quiz_2025

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

1. A transaction is a ____

a)

a) Logical unit of data

b)

b) Logical unit of work

c)

c) Physical unit of work

d)

d) Physical record

2.

2. Which of the following is NOT an ACID property?

a)

a) Atomicity

b)

b) Consistency

c)

c) Integration

d)

d) Durability

3.

3. A transaction that has started but not yet completed is in which state?

a)

a) Committed

b)

b) Failed

c)

c) Active

d)

d) Aborted

4.

4. When a transaction successfully completes all its operations, it is in ____ state.

a)

a) Aborted

b)

b) Committed

c)

c) Failed

d)

d) Partial

5.

5. Concurrency control is required to ensure ____

a)

a) No redundant data

b)

b) Correct execution of concurrent transactions

c)

c) Fast execution

d)

d) Backup and recovery

6.

6. Lost update problem occurs when ____

a)

a) Two transactions wait for each other

b)

b) Two transactions update the same data simultaneously

c)

c) A transaction fails after commit

d)

d) None

7.

7. Dirty read occurs when a transaction reads data written by another transaction that is ____

a)

a) Committed

b)

b) Rolled back

c)

c) Aborted

d)

d) Uncommitted

8.

8. Which of the following is NOT a concurrency problem?

a)

a) Lost update

b)

b) Dirty read

c)

c) Phantom read

d)

d) Data entry error

9.

9. A schedule in which each transaction is executed one after another is called ____

a)

a) Serial schedule

b)

b) Parallel schedule

c)

c) Cascaded schedule

d)

d) Strict schedule

10.

10. A schedule is serializable if it produces the same results as a ____ schedule.

a)

a) Cascaded

b)

b) Serial

c)

c) Non-serial

d)

d) Precedence

11.

11. Which type of serializability is based on conflict operations?

a)

a) View serializability

b)

b) Conflict serializability

c)

c) Context serializability

d)

d) Structural serializability

12.

12. Precedence graph is used to test ____

a)

a) View serializability

b)

b) Conflict serializability

c)

c) Cascadelessness

d)

d) Deadlock

13.

13. In lock-based protocols, which lock allows a transaction only to read a data item?

a)

a) Exclusive lock

b)

b) Shared lock

c)

c) Binary lock

d)

d) Time-stamp lock

14.

14. Exclusive lock allows ____

a)

a) Only reading

b)

b) Only writing

c)

c) Reading and writing both

d)

d) Neither read nor write

15.

15. Two-Phase Locking (2PL) ensures ____

a)

a) Serializability

b)

b) No deadlock

c)

c) Faster execution

d)

d) No concurrency

16.

16. In 2PL, once a transaction releases its lock, it cannot ____

a)

a) Read

b)

b) Write

c)

c) Acquire new locks

d)

d) Commit

17.

17. Timestamp-based protocol orders transactions based on ____

a)

a) Lock type

b)

b) System time

c)

c) Transaction ID

d)

d) Execution speed

18.

18. In timestamp ordering, if a transaction tries to read outdated data, it is ____

a)

a) Allowed

b)

b) Ignored

c)

c) Rolled back

d)

d) Locked

19.

19. A state where two or more transactions are waiting for each other indefinitely is called ____

a)

a) Starvation

b)

b) Deadlock

c)

c) Concurrency

d)

d) Schedule

20.

20. Deadlock detection is done using ____

a)

a) Lock table

b)

b) Precedence graph

c)

c) Wait-for graph

d)

d) Schedules

21.

21. Deadlock prevention ensures that ____

a)

a) Deadlock never occurs

b)

b) Deadlock is resolved after occurrence

c)

c) Deadlock is ignored

d)

d) Deadlock is allowed

22.

22. In wait–die and wound–wait, decisions are based on ____

a)

a) Size of lock

b)

b) Timestamp of transactions

c)

c) CPU usage

d)

d) Lock duration

23.

23. Which deadlock handling method ignores deadlocks completely?

a)

a) Prevention

b)

b) Detection

c)

c) Avoidance

d)

d) Ignorance (Ostrich method)

24.

24. A schedule that does not allow cascading rollbacks is called ____

a)

a) Cascadeless

b)

b) Serial

c)

c) Conflict-serial

d)

d) Strict

25.

25. Strict schedules ensure that data written by a transaction is not read until ____

a)

a) It starts

b)

b) It commits

c)

c) It requests

d)

d) It aborts