What happens when a database transaction triggers a 'COMMIT' statement? MCQ with Answer and Explanation

What happens when a database transaction triggers a 'COMMIT' statement?
A. The database structure is dropped.
B. All changes made by the transaction are made permanent on disk storage.
C. The transaction pauses temporarily.
D. The transaction is aborted and wiped.
Answer: Option B
Solution (By JKExamLibrary)
Executing a COMMIT statement instructs the database engine to save all data updates performed during the transaction permanently into physical storage.

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

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1 Report Error
What does ACID stand for in the context of database transactions?
A. Atomicity, Consistency, Integrity, Data
B. Atomicity, Consistency, Isolation, Durability
C. Atomicity, Concurrency, Isolation, Durability
D. Atomicity, Consistency, Integrity, Durability

Correct Answer: Option B


Explanation:
ACID stands for Atomicity, Consistency, Isolation, and Durability, which are the key properties that guarantee reliable processing of database transactions.

This question belongs to: Computer Database Management System (DBMS)
Question #2 Report Error
Which type of relationship is represented by a foreign key in a relational database?
A. One-to-one
B. One-to-many
C. All of the above
D. Many-to-many

Correct Answer: Option C


Explanation:
Foreign keys can represent various relationships, including one-to-one, one-to-many, and many-to-many (via junction tables).

This question belongs to: Computer Database Management System (DBMS)
Question #3 Report Error
Which of the following is an example of a relational database management system (RDBMS)?
A. Redis
B. Cassandra
C. MongoDB
D. Oracle Database

Correct Answer: Option D


Explanation:
Oracle Database is a well-known RDBMS. MongoDB, Redis, and Cassandra are NoSQL databases.

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