
Database Management System

Quiz
•
Other
•
Professional Development
•
Medium
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
Similar Resources on Wayground
22 questions
កម្រងសំណួរប្រព័ន្ធធនាគារស្នូល FlexCube 14.7

Quiz
•
Professional Development
20 questions
CA01/L1 KOMUNIKASI ASAS PEKERJAAN

Quiz
•
Professional Development
21 questions
ULANGKAJI C03

Quiz
•
Professional Development
20 questions
Pertandingan Quizizz Integriti 2024

Quiz
•
Professional Development
24 questions
The Worlds Main Battle Tanks

Quiz
•
8th Grade - Professio...
20 questions
SUMBER PEMBIAYAAN

Quiz
•
KG - Professional Dev...
20 questions
PRUONE

Quiz
•
Professional Development
24 questions
SHOC, Noise & PPE and Fit Test

Quiz
•
Professional Development
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade