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 transaction is aborted and wiped.
B. The transaction pauses temporarily.
C. The database structure is dropped.
D. All changes made by the transaction are made permanent on disk storage.
Answer: Option D
Solution (By JKSSB Mock Tests)
Executing a COMMIT statement instructs the database engine to save all data updates performed during the transaction permanently into physical storage.

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
Which SQL command is used to add new rows of data into an existing table?
A. UPDATE
B. APPEND
C. ADD
D. INSERT

Correct Answer: Option D


Explanation:
The INSERT command is a Data Manipulation Language (DML) statement used to add new records/rows to a table.

This question belongs to: Computer Database Management System (DBMS)
Question #2
When the same data is updated in one location but remains unchanged in another location, it creates a state of what?
A. Data Integrity
B. Data Security
C. Data Independence
D. Data Inconsistency

Correct Answer: Option D


Explanation:
Data Inconsistency occurs when different versions of the same data appear in different places due to uncontrolled data redundancy.

This question belongs to: Computer Database Management System (DBMS)
Question #3
Which of the following commands is used to modify the structure of an existing table, such as adding or deleting a column?
A. ALTER
B. CHANGE
C. UPDATE
D. MODIFY

Correct Answer: Option A


Explanation:
The ALTER command is part of DDL and is used to modify the schema or structural definition of an existing database object like a table.

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