Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
211 Which of the following is true about a transaction after COMMIT?
Explanation
- After commit the changes are durable and visible to others.
- The transaction ends and its locks are released.
Last verified on 27-11-2026
212 What does the statement RELEASE SAVEPOINT do in some systems?
Explanation
- RELEASE SAVEPOINT deletes the marker; the transaction continues.
- Rolling back to it is no longer possible after release.
Last verified on 27-11-2026
213 In a nested transaction using savepoints, rolling back to an inner savepoint:
Explanation
- A savepoint rollback is partial: only work after that point is undone.
- The outer transaction remains active.
Last verified on 27-11-2026
214 Why must COMMIT be used carefully in a long interactive transaction?
Explanation
- Commit makes changes permanent, so errors after commit need a correcting transaction.
- Review changes before committing.
Last verified on 27-11-2026
215 Which operation is NOT part of a transaction’s end?
Explanation
- SAVEPOINT is a marker inside a transaction, not an ending.
- COMMIT and ROLLBACK end a transaction; closing a connection usually rolls back pending work.
Last verified on 27-11-2026
216 What happens if you issue COMMIT when no transaction is active?
Explanation
- COMMIT with no active transaction normally does nothing.
- Some systems may warn, but no data changes.
Last verified on 27-11-2026
217 A user updates a salary, then issues ROLLBACK. What is the salary afterwards?
Explanation
- ROLLBACK restores the value from before the transaction.
- The update is discarded as if it never happened.
Last verified on 27-11-2026
218 A user updates a salary, then issues COMMIT, then issues ROLLBACK. What is the salary?
Explanation
- The COMMIT made the new salary permanent, so the later ROLLBACK undoes nothing.
- The new salary remains.
Last verified on 27-11-2026
219 If a transaction fails midway before COMMIT, what should happen?
Explanation
- A failed transaction must be rolled back so no partial effect remains.
- Atomicity requires all or nothing.
Last verified on 27-11-2026
220 What is an implicit commit?
Explanation
- Some systems implicitly commit the current transaction before DDL statements like CREATE TABLE.
- The behaviour varies by DBMS, so it must be checked.
Last verified on 27-11-2026