wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ACID Propertis , Serializability and Locks

Total questions: 20

Worksheet time: 7mins

Name
Class
Date
1.

Which property of a transaction ensures that either all operations are completed or none are?

a)

Durability

b)

Atomicity

c)

Isolation

d)

Consistency

2.

In transaction management what does 'C' stands for?

a)

Concurrency

b)

Consistency

c)

Complexity

d)

Corelated

3.

Which SQL command is used to undo all the changes made by a transaction?

a)

Savepoint

b)

Grant

c)

Commit

d)

Rollback

4.

What is SAVEPOINT in transaction management?

a)

A command to finaalize a transaction

b)

A lock applied to prevent deadlocks

c)

A point where the database is backed up

d)

A marker within a transaction to roll back partially

5.

Which type of serializability uses a precedence graph?

a)

Conflict serializability

b)

View serializability

c)

Cascadeless serializability

d)

Recoverability

6.

In view serializability, the final (a)   operation on each data item must match the serial schedule

7.

Two operations conflict when they:

a)

Access the same item and one is a write

b)

Are both reads

c)

Belong to different schedules

d)

Access different data items

8.

Which of the following is not a ACID property

a)

Atomicity

b)

Consistency

c)

Integrity

d)

Durability

9.

Which schedule type ensures serializability

a)

Non-serial

b)

Serial

c)

Recoverable

d)

Cascadeless

10.

which isolation level allows dirty reads

a)

Read uncommited

b)

Read commited

c)

Repeatable

d)

Serializable

11.

what is a dirty read

(a)  

12.

A schedule with only read operation is

a)

Always cyclic

b)

Always conflict serializable

c)

not serializable

d)

Always non recoverable

13.

Which operation causes a write-write conflict

a)

R1(X),R2(X)

b)

W1(X),W2(X)

c)

R1(X)W2(X)

d)

W1(X),R2(X)

14.

Which protocol guarantees conflict serializability

a)

Timestamp ordering

b)

Strict 2PL

c)

Deadlock detection

d)

Shadow paging

15.

Which lock allows multiple transactions to read the same data item simultaneously

a)

Update lock

b)

Exclusive lock

c)

Intent exclusive lock

d)

Shared lock

16.

Which lock mode prevents all other locks on a data item

a)

Exclusive lock

b)

Read lock

c)

Intent shared lock

d)

Shared lock

17.

Which of the following causes the deadlock

a)

A transaction releasing lock early

b)

Two transactions

holding shared locks

c)

Two transactions waiting for each other exclusive lock

d)

Using timestamp ordering

18.

Even if system crashes after a commit the data remains safe according to which ACID property

(a)  

19.

Consistency ensures that after a transaction, the database is:

a)

Faster

b)

In a valid state

c)

Free of locks

d)

Serializable

20.

Consistency is violated when:

a)

A transaction commits

b)

A transaction updates two tables

c)

A transaction leaves the database in invalid state

d)

A transaction reads the same item twice