Ch 42: Transaction Concepts & ACID Properties

6 Questions6 MCQs0 Short Questions0 Long Questions
🎯 Exam Practice Papers
SEMESTER PASS

CS403 - Database Management Systems Examination Practice

Timed practice exam simulation for CS403 - Database Management Systems.

📘 VU MID TERM EXAMLectures 1 to 22
⏱️ 60 Mins

Mid Term Examination

Covers syllabus of Lectures 1 to 22 with 30 high-yield MCQs in a timed exam environment.

📝30 MCQs
⏱️60 Minutes
📗 VU FINAL TERM EXAMLectures 23 to 45
⏱️ 90 Mins

Final Term Examination

Comprehensive semester exam preparation with 45 MCQs covering Lectures 23 to 45 with complete course coverage.

📝45 MCQs
⏱️90 Minutes
Showing 1 – 6 of 6 Questions
Page 1 of 1
Q1
❓ MCQ📘 CS403📑 Lec 42🏷️ 42.2. ACID Properties of TransactionsMedium🔁⭐💡🌟📄🎓VU🏛️VU
Which of the following is NOT a characteristic or a requirement of a standard Database Transaction under ACID transaction management rules?
💻 text Snippet
-- Every database transaction must follow ACID rules:
-- Atomicity, Consistency, Isolation, Durability
  1. A.Users should be able to regard the execution of each transaction as atomic (all-or-nothing).
  2. B.Each transaction must preserve the consistency of the database, transforming it from one valid state to another.
  3. C.The execution of a transaction is isolated and completely independent of other concurrent transactions.
  4. D.The correctness and execution state of a transaction is dependent on other concurrent transactions.
Q2
❓ MCQ📘 CS403📑 Lec 42🏷️ 42.2. Transaction Properties (ACID)Medium🔁⭐💡📄🎓VU🏛️VU
Transaction management in relational database systems relies on four fundamental properties, collectively known as the ACID properties. Which of the following lists these properties correctly?
💻 text Snippet
ACID Properties:
- A: Atomicity (All or Nothing)
- C: Consistency (Valid State)
- I: Isolation (Independent Execution)
- D: Durability (Persistent Changes)
  1. A.Atomicity, Consistency, Isolation, and Durability
  2. B.Association, Cardinality, Identity, and Decomposition
  3. C.Access, Concurrency, Indexing, and Denormalization
  4. D.Aggregation, Cascading, Integrity, and Dependency
Q3
❓ MCQ📘 CS403📑 Lec 42🏷️ 42.2. ACID Properties of TransactionsEasy🔁⭐💡📄🎓VU🏛️VU
Match the database transaction properties (ACID) in Column A with their correct operational rules in Column B: Column A (Properties): 1. Atomicity 2. Consistency 3. Isolation 4. Durability Column B (Rules): A. The database must transition from one valid state of integrity to another. B. Concurrent execution of transactions must not interfere with each other. C. All operations of a transaction must complete successfully, or the entire transaction is rolled back. D. Committed changes must survive subsequent system crashes or power failures.
💻 sql Snippet
-- Conceptual SQL showing atomicity with a commit/rollback
BEGIN TRANSACTION;
   UPDATE Accounts SET Balance = Balance - 200 WHERE AccountID = 101;
   UPDATE Accounts SET Balance = Balance + 200 WHERE AccountID = 102;
-- If any error occurs, rollback is executed:
ROLLBACK;
-- If both succeed:
COMMIT;
  1. A.1-C, 2-A, 3-B, 4-D
  2. B.1-A, 2-C, 3-D, 4-B
  3. C.1-B, 2-D, 3-C, 4-A
  4. D.1-D, 2-B, 3-A, 4-C
Q4
❓ MCQ📘 CS403📑 Lec 42🏷️ 42.2. ACID Properties of TransactionsEasy🔁⭐💡🌟📄🎓VU🏛️VU
Match the database transaction properties (ACID) with their correct real-world descriptions and operational rules: 1. Atomicity - A. All transaction operations must complete successfully, or the entire transaction is rolled back. 2. Consistency - B. A transaction must transition the database from one valid state of integrity to another. 3. Isolation - C. Concurrent transaction executions must not interfere with each other. 4. Durability - D. Completed transactions must survive server crashes and power failures.
💻 sql Snippet
-- Conceptual Transaction Block showing Atomicity:
BEGIN TRANSACTION;
   UPDATE Accounts SET Balance = Balance - 500 WHERE AccID = 101;
   UPDATE Accounts SET Balance = Balance + 500 WHERE AccID = 102;
COMMIT; -- If either fails, ROLLBACK occurs.
  1. A.1-A, 2-B, 3-C, 4-D
  2. B.1-B, 2-A, 3-D, 4-C
  3. C.1-C, 2-D, 3-A, 4-B
  4. D.1-D, 2-C, 3-B, 4-A
Q5
🧠 Long Problem📘 CS403📑 Lec 42🏷️ 42.2. ACID Properties of TransactionsMedium🔁⭐💡🌟📄🎓VU🏛️VU
Describe the 'Atomicity' property (the 'A' in ACID) of database transactions and explain its significance in transactional database integrity.
💻 sql Snippet
-- Atomicity in action (Rollback on failure):
BEGIN TRANSACTION;
   UPDATE Accounts SET Balance = Balance - 500 WHERE AccID = 101;
   -- If crash happens here, DBMS rolls back previous line on restart.
   UPDATE Accounts SET Balance = Balance + 500 WHERE AccID = 102;
COMMIT;
Q6
❓ MCQ📘 CS403📑 Lec 42🏷️ 42.2. ACID Properties of TransactionsEasy🔁⭐💡📄🎓VU🏛️VU
The ACID properties serve as the foundational standard for database transactions. Which of the following is NOT classified as a standard transaction property under relational transaction management guidelines?
💻 text Snippet
-- Transaction ACID properties verify:
-- A: Atomicity
-- C: Consistency
-- I: Isolation
-- D: Durability
  1. A.Atomicity
  2. B.Consistency
  3. C.Redundancy
  4. D.Durability