Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Tests  >  Database Management System (DBMS)  >  Test: ACID Properties - Computer Science Engineering (CSE) MCQ

Test: ACID Properties - Computer Science Engineering (CSE) MCQ


Test Description

10 Questions MCQ Test Database Management System (DBMS) - Test: ACID Properties

Test: ACID Properties for Computer Science Engineering (CSE) 2024 is part of Database Management System (DBMS) preparation. The Test: ACID Properties questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: ACID Properties MCQs are made for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: ACID Properties below.
Solutions of Test: ACID Properties questions in English are available as part of our Database Management System (DBMS) for Computer Science Engineering (CSE) & Test: ACID Properties solutions in Hindi for Database Management System (DBMS) course. Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free. Attempt Test: ACID Properties | 10 questions in 30 minutes | Mock test for Computer Science Engineering (CSE) preparation | Free important questions MCQ to study Database Management System (DBMS) for Computer Science Engineering (CSE) Exam | Download free PDF with solutions
Test: ACID Properties - Question 1

Which one of the following is NOT a part of the ACID properties of database transactions?

Detailed Solution for Test: ACID Properties - Question 1

ACID properties of database transaction:

  • Atomicity: The entire transaction takes place at once or doesn’t happen at all.
  • Consistency: The database must be consistent before and after the transaction.
  • Isolation: Multiple transactions occur independently without interference.
  • Durability: The changes of a successful transaction occurs even if the system failure occurs.

So, deadlock freedom is not the ACID property of database transaction.

Test: ACID Properties - Question 2

ACID properties of a transactions are

Detailed Solution for Test: ACID Properties - Question 2

Atomicity requires that each transaction be "all or nothing": if one part of the transaction fails, then the entire transaction fails, and the database state is left unchanged.

The consistency property ensures that any transaction will bring the database from one valid state to another.

The isolation property ensures that the concurrent execution of transactions results in a system state that would be obtained if transactions were executed sequentially.

The durability property ensures that once a transaction has been committed, it will remain so, even in the event of power loss, crashes, or errors.

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: ACID Properties - Question 3

The statement given below describes which of the ACID properties of transactions?

“The changes applied to the database by a committed transaction must persist in the database, and these changes must not be lost because of any failure”

Detailed Solution for Test: ACID Properties - Question 3

Statement:

“The changes applied to the database by a committed transaction must persist in the database, and these changes must not be lost because of any failure”

ACID Properties:

A transaction in a database system must maintain Atomicity, Consistency, Isolation, and Durability − commonly known as ACID properties − in order to ensure accuracy, completeness, and data integrity.

Atomicity − This property states that a transaction must be treated as an atomic unit, that is, either all its operations are executed or none.

Consistency − The database must remain in a consistent state after any transaction. No transaction should have any adverse effect on the data residing in the database.

Isolation − In a database system where more than one transaction is being executed simultaneously and in parallel, the property of isolation states that all the transactions will be carried out and executed as if it is the only transaction in the system.

Durability − The database should be durable enough to hold all its latest updates even if the system fails or restarts.

Therefore, Durability is the answer.

Test: ACID Properties - Question 4

Consider the following partial Schedule S involving two transactions T1 and T2. Only the read and the write operations have been shown. The read operation on data item P is denoted by read(P) and the write operation on data item P is denoted by write(P)

Suppose that the transaction T1 fails immediately after time instance 9. Which one of the following statements is correct?

Detailed Solution for Test: ACID Properties - Question 4

Option 1: Incorrect
As, it is not giving any surety about T1, there is no commit in T1.  Rolling back of T2 may not be required in this.

Option 2: Correct
In given schedule, T2 is reading data item A that is written by T1 so it means commit of T1 must before the commit of T2, but here in this schedule it is not happening. So, this is non – recoverable schedule. In this after T1 fails, if we want to undo all the operations, still we cannot undo a committed transaction. So, it cannot ensure transaction atomicity.

Option 3: Incorrect
It is redoing all the operations of T2. But in this, it is reading data item A that is written by T1 and T1 is not committed. So, it results in dirty read problem.

Option 4: Incorrect
Since Schedule S is non – recoverable. So, it is incorrect. Also, it cannot ensure atomicity.
 

Test: ACID Properties - Question 5

All Oracle transactions obey the basic properties of a database transaction. What is the name of the following property?
‘All tasks of a transaction are performed or none of them are. There are no partial transactions.’

Detailed Solution for Test: ACID Properties - Question 5

ACID Properties:

A transaction in a database system must maintain Atomicity, Consistency, Isolation, and Durability − commonly known as ACID properties − in order to ensure accuracy, completeness, and data integrity.

Atomicity − This property states that a transaction must be treated as an atomic unit, that is, either all its operations are executed or none.There are no partial transactions

Consistency − The database must remain in a consistent state after any transaction. No transaction should have any adverse effect on the data residing in the database.

Isolation − In a database system where more than one transaction is being executed simultaneously and in parallel, the property of isolation states that all the transactions will be carried out and executed as if it is the only transaction in the system.

Durability − The database should be durable enough to hold all its latest updates even if the system fails or restarts.

Test: ACID Properties - Question 6

Consider the following transaction involving two bank accounts x and y.
read (x); x := x – 50 ; write (x) ; read (y) ; y≔ y + 50 ; write (y)

The constraint that the sum of the accounts x and y should remain constant is that of

Detailed Solution for Test: ACID Properties - Question 6

Let us assume that RS.50 is debited from one account and credited to another account, in such case T1 transaction should execute first then T2

Before transaction: Initially
x = 100 and y = 150 then x + y = 250
After transaction: Finally
x = 50 and y = 200 then x + y = 250

The constraint that the sum of the accounts x and y should remain constant is that of consistency.

Test: ACID Properties - Question 7

Consider a simple checkpointing protocol and the following set of operations in the log.

(start, T4); (write, T4, y, 2, 3); (start, T1); (commit, T4); (write, T1, z, 5, 7); (checkpoint);
(start, T2); (write, T2, x, 1, 9); (commit, T2); (start, T3), (write, T3, z, 7, 2);

If a crash happens now and the system tries to recover using both undo and redo operations, what are the contents of the undo list and the redo list?

Detailed Solution for Test: ACID Properties - Question 7

Above operation are shown in table as:


Now, as T1 and T3 are uncommitted, they must be undone. T2 is committed but it is after checkpoint so, it must be redone. As, T4 is already committed before checkpoint so, it neither comes in undo list nor in redo list.

Test: ACID Properties - Question 8

In Database management system ACID property refers to:

Detailed Solution for Test: ACID Properties - Question 8

ACID Properties:

A transaction in a database system must maintain Atomicity, Consistency, Isolation, and Durability − commonly known as ACID properties − in order to ensure accuracy, completeness, and data integrity.

Atomicity − This property states that a transaction must be treated as an atomic unit, that is, either all its operations are executed or none.

Consistency − The database must remain in a consistent state after any transaction. No transaction should have any adverse effect on the data residing in the database.

Isolation − In a database system where more than one transaction is being executed simultaneously and in parallel, the property of isolation states that all the transactions will be carried out and executed as if it is the only transaction in the system.

Durability − The database should be durable enough to hold all its latest updates even if the system fails or restarts.

Test: ACID Properties - Question 9

What is ACID properties of DBMS Transactions?

Detailed Solution for Test: ACID Properties - Question 9

ACID Properties:

A transaction in a database system must maintain Atomicity, Consistency, Isolation, and Durability − commonly known as ACID properties − in order to ensure accuracy, completeness, and data integrity.

Atomicity − This property states that a transaction must be treated as an atomic unit, that is, either all its operations are executed or none.

Consistency − The database must remain in a consistent state after any transaction. No transaction should have any adverse effect on the data residing in the database.

Isolation − In a database system where more than one transaction is being executed simultaneously and in parallel, the property of isolation states that all the transactions will be carried out and executed as if it is the only transaction in the system.

Durability − The database should be durable enough to hold all its latest updates even if the system fails or restarts.

Therefore, Option 2 is correct

Test: ACID Properties - Question 10

Which property of database transaction create an allusion than only 1 transaction is executed in system in spite of more than one transaction is executed in parallel manner?

Detailed Solution for Test: ACID Properties - Question 10

ACID Properties:

A transaction in a database system must maintain Atomicity, Consistency, Isolation, and Durability − commonly known as ACID properties − in order to ensure accuracy, completeness, and data integrity.

Atomicity − This property states that a transaction must be treated as an atomic unit, that is, either all its operations are executed or none.

Consistency − The database must remain in a consistent state after any transaction. No transaction should have any adverse effect on the data residing in the database.

Isolation − In a database system where more than one transaction is being executed simultaneously and in parallel, the property of isolation states that all the transactions will be carried out and executed as if it is the only transaction in the system.

Durability − The database should be durable enough to hold all its latest updates even if the system fails or restarts.

Therefore, Isolation is the correct answer.

62 videos|66 docs|35 tests
Information about Test: ACID Properties Page
In this test you can find the Exam questions for Test: ACID Properties solved & explained in the simplest way possible. Besides giving Questions and answers for Test: ACID Properties, EduRev gives you an ample number of Online tests for practice

Top Courses for Computer Science Engineering (CSE)

Download as PDF

Top Courses for Computer Science Engineering (CSE)