wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DBMS-Transactions-Revision

Total questions: 12

Worksheet time: 10mins

Name
Class
Date
1.

RAID stand for _________

a)

Redundant Arrays of Idempotent Data

b)

Redundant Arrays of Independent Disks

c)

Redundant Arrays of Independent Data

d)

Redundant Arrays of Isolated Disks

2.

The files with variable length records make use of (a)   structure for storage.

3.

To preserve the integrity and consistency of data, the database system must ensure

a)

Atomicity

b)

Isolation

c)

Durability

d)

Consistency

e)

All of the above

4.

Consider the following action:

TRANSACTION.....

Commit;

ROLLBACK;

What does Rollback do?

a)

Undoes the transactions before commit

b)

Clears all transactions

c)

Redoes the transactions before commit

d)

No action

5.

If a schedule S can be transformed into a schedule S' by a series of swaps of non-conflicting instructions, we say that S and S' are

a)

Conflict serializable

b)

Conflict equivalent

c)

View serializable

d)

Serializable

6.

Consider the two transactions T1 and T2 and four schedules S1, S2, S3, S4 of T1 and T2 as given below

S1: R1(X); R2(X); R2(Y); W1(X); W1(Y); W2(Y)

S2: R1(X); R2(X); R2(Y); W1(X); W2(Y); W1(Y)

Here R1(X) denotes read operation on X by the transaction T1 and W1(X) denotes write operation on X by the transaction T1.

Which of the schedules(s) are conflicts serializable?

a)

S1 and S2

b)

S2 only

c)

S1 only

d)

Neither S1 nor S2

7.

For the given schedule, which is the equivalent serial schedule?


a)

T1 - T2 - T3

b)

T1 - T3 - T2

c)

T2 - T1 - T3

d)

T3 - T1 - T2

8.

The column ‘C’ has to be indexed. What is the content of the bitmap index?

A B C

a1 b1 c2

a1 b1 c2

a2 b4 c1

a3 b2 c3

4 lines
9.

Identify the options which are true for Immediate-modification scheme

a)

Allows updates of an uncommitted transaction to be made to the buffer, or the disk itself, before the transaction commits.

b)

Update log record must be written after a database item is written

c)

Output of updated blocks to disk storage can take place at any time before or after transaction commit

d)

Performs updates to buffer/disk only at the time of transaction commit

10.

Consider the state of the transactions in the diagram and the statements given below:

A. T1 can be ignored.

B. T2 and T3 redone

C. T4 undone

D. T4 redone

Mark the correct group of statements from the options below

a)

A, B, D

b)

A, B, C

c)

Only A and B but not C

d)

Only B and C but not A

11.

Identify the incorrect statement based on checkpoint

a)

All updates are stopped while doing checkpoint

b)

Continue scanning backwards till a record <Ti start> is found for every transaction Ti in L

c)

Scan backwards from end of log to find the most recent <checkpoint L> record

d)

Scan from starting of log to find the most recent <checkpoint L> record

12.

What is the effect of the UNDO operation corresponding to a log record

< Ti; Y; S; K >

where Ti is the transaction, and S and K are the old and new values respectively of a data location

a)

No change to Y

b)

Writes the value S to Y

c)

Writes the value K to Y

d)

Sets Y to 0