Database Management System

Database Management System

Professional Development

25 Qs

quiz-placeholder

Similar activities

TM expert ISTQB.org

TM expert ISTQB.org

Professional Development

20 Qs

Post Test Co7: Event Arrangement

Post Test Co7: Event Arrangement

Professional Development

20 Qs

Compliance at Pos Digicert

Compliance at Pos Digicert

Professional Development

20 Qs

DATA INTEGRITY BY DESIGN

DATA INTEGRITY BY DESIGN

Professional Development

20 Qs

MA - Ch-1 Accounting for Management

MA - Ch-1 Accounting for Management

Professional Development

21 Qs

Data Structure

Data Structure

Professional Development

20 Qs

Refreshment NOS Dealer

Refreshment NOS Dealer

Professional Development

20 Qs

Counter Quiz - Logos

Counter Quiz - Logos

Professional Development

20 Qs

Database Management System

Database Management System

Assessment

Quiz

Other

Professional Development

Medium

Created by

Viswathika K

Used 3+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following sequence of two transactions on a bank account(A) with initial balance 20,000 that transfers 5,000 to another account (B) and then applies 10% interest.

(i) T1 start
(ii) T1 A old=20000 new=15,000
(iii) T1 B old=12000 new=17000
(iv) T1 commit
(v) T2 start
(vi) T2 A old=15000 new=16500
(vii) T2 commit

Suppose the database system crashes just before log record (vii) is written. When the system is restarted, which one statement is true of the recovery process?

We can apply redo and undo operations in arbitrary order because they are idempotent.

We must redo log record (vi) to set A to 16,500.

We must undo log record (vi) to set A to 16,500 and then redo log records (ii) and (iii).

We need not redo records (ii) and (iii) because transaction T1 has committed.

Answer explanation

When the system crashes before transaction T2 commits (at log record vii), we have to ensure that any operation done by T2 that was not yet committed must be undone. Therefore, we need to undo the changes made by T2 (log record vi), which would restore account A to 15,000.


Afterward, we need to redo the operations of T1 (log records ii and iii) to ensure that the transfer of 5,000 from account A to account B is preserved and the changes are reflected in the database correctly.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following scenarios may lead to an irrecoverable error in a database system?

A transaction writes a data item after it is read by an uncommitted transaction.

A transaction reads a data item after it is read by an uncommitted transaction.

A transaction reads a data item after it is written by a committed transaction.

A transaction reads a data item after it is written by an uncommitted transaction.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A transaction may be in one of the following states during its execution life cycle in a concurrent execution environment: A. FAILED B. TERMINATED C. PARTIALLY COMMITTED D. COMMITTED E. ACTIVE Given a transaction in the active state during its execution, find its next transitioned state from the options given below:

A only

C only

D only

Either A or C only

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the DBMS components ensures that concurrent execution of multiple operations on the database results into a consistent database state?

Buffer manager

File manager

Logs

Transaction processing system

Answer explanation

The Transaction Processing System (TPS) is responsible for managing database transactions. It ensures that multiple transactions are executed in such a way that the database maintains its consistency, even in the presence of concurrent access.

TPS enforces the ACID properties (Atomicity, Consistency, Isolation, Durability) which guarantee that concurrent transactions do not lead to an inconsistent database state.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the context of concurrency control, a given pair of operations in a schedule is called a conflict schedule if: (A) At least one of the operations is a write operation.

(B) Both the operations are performed on the same data item.

(C) Both the operations are performed by different transactions.

(D) Both the operations are performed on different data items.

(A), (B) and (C) only

(A), (B), (C) and (D)

(A) and (C) only

(B) and (D) only

Answer explanation

A conflict schedule involves operations that meet three conditions:

  • At least one operation must be a write operation (A).

  • Both operations must act on the same data item (B).

  • Both operations must come from different transactions (C).

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_________ SQL command changes one or more fields in a record.

LOOK-UP

INSERT

MODIFY

CHANGE

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

___________ command is used to remove a relation from an SQL database.

Update table

Remove table

Delete table

Drop table

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?