GateAI
Transactions and Concurrency Control

GATE CSE 2015 Set 2 · Q1

MCQ1 markEasy

Time

Consider the following transaction involving two bank accounts xx and yy . read(x) ; x := x - 50; write(x) ; read(y) ; y:= y + 50; write(y) The constraint that the sum of the accounts xx and yy should remain constant is that of

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: B) Consistency

Transactions and Concurrency Control

In database transaction processing, the ACID properties are:

  • Atomicity: Ensures all operations within a transaction are executed completely or none at all.

  • Consistency: Ensures that the execution of a transaction takes the database from one valid (consistent) state to another, satisfying all integrity constraints (such as preserving total account balances: x+y=constantx + y = \text{constant} before and after transfer).

  • Isolation: Ensures concurrent execution of transactions leaves the database in the same state as if they were executed sequentially.

  • Durability: Ensures that committed updates persist even in the event of a system crash.

The requirement that x+yx + y remains constant is an integrity constraint, which relates directly to the Consistency property.

Therefore, B is the correct option.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Transactions and Concurrency Control previous year question is Q1 of the GATE CSE 2015 Set 2 paper. Find more GATE CSE PYQs on Transactions and Concurrency Control in Databases, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Transactions and Concurrency Control PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Transactions and Concurrency Control in GATE CSE

Transactions and Concurrency Control has 25 GATE CSE PYQs across 20 papers from 2012 to 2026. 7 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2015 Set 2.

How GATE tests Transactions and Concurrency Control

More from GATE CSE 2015 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2015 Set 2 · Q1 · MCQ

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

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.