Which of the following is a property of a transaction that ensures that the database remains in a valid state before and after the transaction? MCQ with Answer and Explanation

Which of the following is a property of a transaction that ensures that the database remains in a valid state before and after the transaction?
A. Isolation
B. Consistency
C. Atomicity
D. Durability
Answer: Option B
Solution (By JKSSB Mock Tests)
Consistency ensures that a transaction brings the database from one valid state to another, maintaining all defined rules and constraints.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1
Which of the following is a valid constraint in SQL?
A. All of the above
B. CHECK
C. PRIMARY KEY
D. FOREIGN KEY

Correct Answer: Option A


Explanation:
CHECK, PRIMARY KEY, FOREIGN KEY, UNIQUE, NOT NULL are all constraints in SQL.

This question belongs to: Computer Database Management System (DBMS)
Question #2
Which operator is used in SQL to compare a value to a set of values returned by a subquery?
A. IN
B. LIKE
C. BETWEEN
D. EXISTS

Correct Answer: Option A


Explanation:
IN checks if a value matches any value in a list or subquery result set.

This question belongs to: Computer Database Management System (DBMS)
Question #3
What does the ROLLBACK statement do?
A. Saves the changes
B. Creates a savepoint
C. Starts a new transaction
D. Undoes all changes made in the current transaction

Correct Answer: Option D


Explanation:
ROLLBACK reverts the database to the state it was in at the beginning of the transaction, undoing all changes.

This question belongs to: Computer Database Management System (DBMS)